ONE ORDER PER SIGNAL
-
HEY GUYS i have a slight problem when i create ea to open example a sell order based on moving average example when price is below moving average 50 open sell and tp one it hits tp it imidiately opens another order in the same direction so my question is how can i have it to open one trade only and open another trade wheen price is obove ma 50,,https://fxdreema.com/shared/UKtXyaiY
-
@mr-lenny said in ONE ORDER PER SIGNAL:
HEY GUYS i have a slight problem when i create ea to open example a sell order based on moving average example when price is below moving average 50 open sell and tp one it hits tp it imidiately opens another order in the same direction so my question is how can i have it to open one trade only and open another trade wheen price is obove ma 50,,https://fxdreema.com/shared/UKtXyaiY
change your no position block to this.

if that doesnt fix it, change the conditions to be on the cross of the 50 as well. But that may not work logically because you are using ask rather than candle.
I would personally use C1 close X,< or X> EMA50 on C1...rather than bid and ask .

-
@tipsywisdom okay thank you bro i will check this