For Each Position Close, Please Help
-
Hi all,
Please I need your help to correctly implement this idea:If the last closed trade(s) was triggered by stop loss,
open a reversed position.This works well if just one trade was closed at the same time
But if 2 or more trades were closed at the same time (for example, when 2 or more trades have their stop loss at the same price level) once stop loss is triggered all trades are close but only one trade is re opened in the reversed direction.I want the number of closed trades by stop loss to be the same number of reverse trades opened
This is easy with Position Close block in the On Trade tab but that is currently not working

-
I think only one reversed trade is opened because "Check Type (last loser)" block only loads one trade. The last loser.
Is there a way I can make "For each closed trade" block to only loop trades closed by stop loss -
I think I can use For each closed trade -- Check how it was closed (stop loss) -- once per position -- sell now

-
@Temmy-25 This is not also working as intended
-
Never tried this, but try using the on-trade tab, position closed by SL, then pink to loop through each closed position, buy or sell, and check the closed time so the EA knows if it was recent, and check type so you know weather to buy or sell.
-
@Temmy-25 The problem is working on Mt5. If you try the same structure on MT4 it will work. The problem is in fxDreema, sadly.

-
It has been solved, position closed block now working correctly on On Trade
-
@Temmy-25 how did you resolved it?
-
I have exactly the same problem.
-
Can you please share the link to your project? It should work now.