Close all operations when profit is X
-
Hello!
Imagine that I have opened several trades in several currencies.
When the sum of all profits of trades in all currencies rich some profit ( +200 pips or 2$, for example), all operations must be closed.
What blocks should I use?
Thanks in advance.
Regards
-
-
I thought that using a formula like you shared would only calculate profit and then close all trades for the single currency pair to which the EA was attached to, in which case, neither one has reached $2 yet. At least that's how I see it's been working for me. Are you suggesting that it should close both the eurusd and usdchf trades in his example?
-
Well, I think I missed to also set "Any market" in "Close trades, then it will close everything: http://prntscr.com/91s6mr