"Bucket of closed trades" since open time of first trade
-
Would really appreciate some input on the correct settings for Bucket of Closed Trades.
EA places multiple trades and I want to get a combined total when all the trades have closed.
My approach is to get the open time of the first trade and create a bucket of all trades for this pair, with the correct group numbers that have closed since the open time of the first trade.
Open time is in a variable

I have tried multiple ways but to no avail. Where do I place this variable in the Bucket settings please ?

Many thanks
-
Are all those trades closed at the same time? The you'd better create a group number for them and then look for its common closing time. Buckets are not very efficient IMHO.
-
Yes, all trades are closed together. Each trade opens with a unique group number (numbers can be 1-12 although average open trades is 4).
I find date & time the hardest aspect to work with, it would be really appreciated if you could point me in the right direction. I haven't been able to find a prior example in the forum.
Many thanks for your help.
-
@mantadiver Can you please share your project?