I am trying to get the ea to enter on candle open if previous trade on a symbol was a loss but my code doesn't if another symbol closes with tp.
for example:
2 positions opened, 1 boom 1000 Index and the other Crash 1000.
Crash 1000 hits Stop loss and thenBoom 1000 hits take profit before closing the current candle, at candle open crash should open a position but it doesn't.
But ifBoom 1000 hits tp and then crash hits Sl before closing the current candle, at candle crash does open a position.
I am trying to get the ea to enter on candle open if previous trade on a symbol was a loss but my code doesn't if another symbol closes with tp.
for example:
2 positions opened, 1 boom 1000 Index and the other Crash 1000.
Crash 1000 hits Stop loss and then Boom 1000 hits take profit before closing the current candle, at candle open crash should open a position but it doesn't.
But if Boom 1000 hits tp and then crash hits Sl before closing the current candle, at candle crash does open a position.
How to solve this?