Simple Crossover Detection Not Working
-
Hi,
I have a simple EA that should draw a line when the candle crosses a moving average indicator. It is in the same format to that shown in the Help examples but it doesn't work. (Image below). I can get it to work if I am detecting if the candle opens and closes below the indicator (and vice versa) but not crossing over the indicator. I have also tried the "crosses above/below" operand but that doesn't work either.
Any help much appreciated!

Cheers.
Lee.
-
OK so I can get an output when I compare the previous candle to the current moving average indicator value but that is no good to me. Anyway below is the adjustment I made for clarity.

Cheers,
Lee. -
I tried the first example I have many vertical lines.
This is what I tried: https://fxdreema.com/shared/c2HtaLwyb
And this is my result:

The same thing, but with another object:
