How to avoid opening orders at the same price?
-
I'm having trouble preventing my EA from opening orders at the same opening price.
I inserted simple rules for this not to happen, see my shared project, but unfortunately the EA insists on opening orders at the same price.
In the backtest it works perfectly, but in the demo account the distance is not being respected.
My Project https://fxdreema.com/shared/4S56tlxEd
-
Does anyone have a possible solution?
I'm testing the demo account on Tickmil. -
I'm having the impression that for some reason that I don't know it's opening (duplicate orders), it's as if at the exact moment the order is opened, sometimes it goes into looping and performs the same command 2 times.
-
try this
https://fxdreema.com/shared/0LoVXGXnbGaca
-
@ontradingx Just use a pink 'once per trade' block below your 'For each trade' block.