simple crossover logic
-
hi,
I'm trying to set an arrow on each (from red to green) crossover in my indicator and have a condition set when buffer2 > buffer3
Unfortunately i get the arrows on strange places.
any ideas what im doing wrong?
see video
[https://www.dropbox.com/s/pxwql2jywj2adlj/2019-08-11_15-35-39.MP4?dl=0](link url)
thanks -
when i set candle id to 1 its ok.
-
Crossing do not work well with candle ID 0. This is why it works fine with candle ID 1. Remember that ID 0 means the current candle which is still under construction. Maybe your condition is true at the beginning of the candle but not at the end. That cannot happen with ID 1 because that candle will never change.