Hello,
I am trying to create a grid EA. I managed to close a batch of trades all together when thy reach an average profit. So if I have 10 trades, they will get all closed in case the price goes in my favour.
However I need that at each cycle of trades, the last trade created closes with the first created. No matter how trades I have. Once they close, the second trade created closes with the actual last created, once their average reaches a profit. I am attaching an image (there is an EA which I am trying to replicate).
How can I do that?
Thank you!
