Close all trades
-
I have a project I am working on, I want to add this to the EA.
At a particular time of the day or week as been selected, If the profit made for the day or week as been selected is grater than the current floating trades all open trades should closed. And the circles continues
-
You can use a structure like this:
-
@l-andorrà I have gone through it but cant understand it
-
Essentially you need the 3 block trees I share in my example. The first one can be used exactly as I share. Same with the third one. What needs to be adjusted to your case is the second in the middle. In my example I show a oversimplified version. You need to create your own structure with the block on top surrounded by the red line as per my example. Then using that block number on both 'turn on' and 'turn off' blocks.
-
@l-andorrà Thanks for your response all these while, now lets do it this way, I want all running trades to close when profit made is greater than the current floating trades.
-
Do you mean 'profit' as closed trades only?
-
@l-andorrà this is what I mean
When closed trade profit made is greater than floating or running trades (either negative or positive), EA should close all the running trades.Hope, you understand the logic
-
Then you need to combine my previous structure with this one that is doing exactly that: