I am trying to compare 2 consecutive values of an indicator, to do different things if the value is constant than if the value is changing.
if (AroonOscillator(period)[1] == AroonOscillator(period)[0]) Diff[0] = 100; else Diff[0] = 0;
Is there anything wrong in the way I am comparing or is this a result of the indicator I am using?
Comment