No Position or once per bar problem
-
Hi Everyone, I'm trying my EA not to open any position when there is already an position running or open a new trade when there is an open trade, I used "once per bar" and also "no position" but the EA keeps on opening a trade immediately after hitting TP or SL on the same bar ..check the screenshot

-
Add a shared link to look at, will probably see the problem from there, for me once per bar only allows 1 trade per candle.
-
-
Because you are turning blocks off and on, they can activate when the blocks above haven't, I rarely turn blocks on/off.
-
@jstap Still happening even though I'm not using the on and off blocks https://fxdreema.com/shared/qt0FpziQc
-
I do not know then, if this isn't a fresh project try starting from scratch. Might be worth contacting the admin.
-

-
I guess this is another issue with MY5. Try to build the same structure for MT4 and if it works the problem is (again) on fxDreema's MQL5 code.