Price equal to MA doesn't render an arrow
-
I am making an EA to draw an arrow if either bid or ask price is equal to specific MA. I am using double equal for both of them, somehow it doesn't render even when a condition is met. What did I do wrong?
-
@kk-6 The problem is with using == is a tick has to happen at that split second, sometimes this happens sometimes not, use something like X>.
-
@jstap Thank you so much for answering. I will do X> then.
-
@jstap But sometimes the price doesn't cross above or below, how do I tackle this? I see an option to adjust but I don't know how to input the number. I want both higher and lower like +1/-1.
-
@kk-6 So X> on 0 is as it happens even if it reverses, on 1 is when cross is confirmed by candle close.