HELP, How to define the First Opened Position
-
Good day, please I need help on the following:
My ea is created to open many positions without stop loss and take profit;
So I want the ea to:-
close all the sell positions if the first opened sell position reaches 25pips profit
-
close all the buy positions if the first opened buy position reaches 25pips profit
Please, how do I achieve this?
-
-
@econsulttt You could turn virtual stops on, or you could do something like this:

-
@jstap thanks but still does not solve the issue, there is no way the CLOSE PROFITABLE TRADES block can identify the first trade position. I want all trades to be closed only if the first trade position enters into 25pips profit
-
@econsulttt You need to use groups and define a condition, for when group 1 trade is @ 25 pips profit, close group 1 trade and then close the rest.
-
@jstap Yea I believe it should work as you've said but sincerely I'm not familiar with using groups for task like this. I will appreciate if you can help with the blocks connection.
Thanks
-
@econsulttt I don't mind helping, just start your project, put a shared link on here with what you need to sort.