Breakeven is constantly moving
-
I have created an EA, which opens multiple simultaneous operations, everything works perfectly except for breakeven. The configuration is proposed, so that in each trade, the breakeven moves, once x pips have been traversed. The problem is that in some operations it moves up and down constantly. I understand that it happens because the price fluctuates and if it does not meet the condition it returns to the starting point, and if it meets the next tick, it moves it to breaeven. The problem is that it is constantly moving. Is there any way the breakeven will not move once it reaches break-even point?

Thanks in advance!
-
Disconnect the breakeven block from its current position and create a separate tree for it, connected below a 'Pass' block.
-
@l-andorrà I just did it, thanks a lot for your help, thanks.
-
You're welcome.