EA opens new trades even when one is already running
-
Hello! I’m building an EA where entries can be triggered by either a trend filter cross or an EMA cross.
It should open only one trade (or trade set) open at a time.
If a buy trade is active from one condition, no other condition (trend filter or EMA cross) should open a new one until that trade fully closes.My current issue:
Even with “No position” or “Check positions count == 0” blocks placed before both entry paths, the EA sometimes still opens a new trade when another is already running. It doesn’t matter if it came from the other signal logic (trend or EMA).Could someone please look at my structure so I can solve this issue, Ty! Here is the link:https://fxdreema.com/shared/HHCSf5j0b
-
You need to use a 'no position' block on top of each branch tree opening a trade so that as soon as any of them opens a trade no other branch will.
-
I have added the no position block, its working perfectly at first then mid backtest its opening 4 positions at once, from the same entry logic, what could i be missing? I have tried adding once per bar too but its not fixing it. Here is the link; https://fxdreema.com/shared/AFpEB4rGd
-
once per bar should be on top after time filter block
-
@Wangui89 No, this is not where I said. Those 'once per bar' blocks need to be position here:

-
Thank you, it has worked!!
-
You're welcome.