Questions about the 'Bucket of close trades' block.
-
I'm going to use the 'Bucket of close trades' block for the first time and I want to confirm I understand it correctly. This is want I want:
- I need to sum up all pips closed (positive and negative) today (only today).
- The overall result of that sum will be put into a variable that will be used for additional calculation for trades open today (only today).
- This bucket will be automatically emptied at the end of today so that there wil not be any closed trade tomorrow.
Now let's take a close look to how I think this can be done:

And my questions are:
- Are filters correct? I want that all closed trades from 00:00 to 23:00 today are being considered.
- What does the 'Shift in time' option do?
- About the last parameter 'Limits', according to the additional info available it's the minimum number of closed trades to be put into the bucket. I guess I need it to be 1 because I want all closed trades today. Am I right?
- Will this configuration be automatically 'emptied' today at 24:00 so that not a single past closed trade will be put into the bucket tomorrow?
-
So, this block uses all those filters to select any trades that match the filters. Then somewhere in "Condition" ... you will find where... the selected trades are used to make the calculations - to sum up the profits for example.
Shift in time - this is used if you want to adjust the time a little bit. I think you don't need this here.
Not more than n history trades - this is the maximum number of trades that could be selected. In your profile history you may have 100s of closed trades and you don't really want to select all of them. So normally you should have some number over there. But you have time limits already, you probably know how much trades you could have in this amount of time.
The configuration is emptied because of the fact that every time the block runs, it selects the trades again. So when the time limits change, it will select different trades.
-
Ok. Thank you.