I need to save equity curves from 1 min data with a daily time frame. Both because I don+t need the 1min resolution and, more importantly, to keep the size of the database under control.
This can't work for reasons I explained in the TimeFrame documentation in the manual. Please do read that.
But all that you are trying to do is not needed at all.
What you can do is to save original equity and retrieve it directly in daily interval using foreign function. Foreign function will pick correct bars and match to daily automatically.
Thanks, tried it, but the resulting file is screwed up (1 min resolution with empty bars except for a chunk at the end with a number of bars that I think is identical to the number of daily bars over the whole analysis period).