Check Open Positions
-
Hello everyone,
I have made this basic EA and I wanted to make the EA ignore any new setups or entry criteria even if all match ( if there are any open positions at the moment ) and everything worked fine but I found that it also check previously opened positions ( closed trades ) from history and I want it to check only currently open positions ( trades ) and not affected by previous closed trades, I hope I could fix that and hope you share any opinions. Best wishes to you all, and thanks in advance.
-
@trade-journey Area 3 is doing nothing in this EA. You can remove unless it was expected to do something. On the other hand, if you want to close all open trades when some profit is hit you can use this kind os structure instead:
-
@l-andorrà Thank you so much sir, but for area 3 how could I make it work probably and ignore or skip any upcoming entry opportunity if there is open position and rework after all positions are closed rather with profit or loss?