protected override void OnBarUpdate()
double x = SuperTrend(14,2.618)[0];
if (
SuperTrend(14,2.618)[0] < Close[0] <-- This Works
x < Close[0] <-- This Works
x[1] < Close[0] <--- This does NOT work
)
Question: How do I access various bars back in brackets once the indicator is named as above?
Another example of what I want to do:
x[1] > x[5]
thanks
Comment