Sorry but not opening the trade again

Sorry but not opening the trade again

@l'andorrà Can you also please provide any solution. Thank you
Yes, That I can understand , only if you can suggest something to fix it
For the clarification
I have a EA that opens multiple lots , for 2,4 & 5 it opens trade equivalent to sum of opened trades when drawdown reaches condition value.
i.e. 0.01 , 0.02 , 0.03 = 0.06
But if I open another trade i.e. 0.02 then the EA again opens hedging for 0.02 and continues for all new opened trades.
I wanted to restrict it to open one trade at a time. I put "counter: pass once" and it doesn't open new trades.
I want to add a function that re-execute the condition and opens the trade if I close the hedge trade of 0.06 manually or by trailing stop loss.( Even if the trades from the other EA are active). Run the loop only if trade of 0.06 is closed.
Thank you
Sorry but not opening the trade again

@jstap Please advise as it is working but again starts to open several orders

Can you please give some hint to put condition to check hedge trade and if closed then move to reset function .
Thank you
@jstap I have added Counter pass once and now it is working fine and not opening more than one trades.
But how can I reset this counter if the trade is closed. Please advise


Thank you
@jstap Is there any block that can stop the loop if one trade is already opened?
Thank you
@l-andorrà @jstap I have created a custom block that opens an equal trade for the opposite direction when the drawdown reaches 5% but I am still having an issue.
Suppose of there are 5 buy trades opened for ( 0.01, 0.02, 0.03,0.04,0.05= 0.15 ) it will open 1 sell trade for 0.15 .
But if the other EA continues to opens another trade it also start to open hedging for those trades.
Please if you can suggest any way to stop taking further hedge trades until 0.15 is already opened and once the hedge trade is closed it may open again.
Thank you

@l'andorrà Can you also please provide any solution. Thank you