This is Jim responding on behalf of Chelsea who is out of the office at this time.
I am not sure I am following what you are trying to do. Could you please elaborate if this does not resolve your inquiry?
If you reference barsAgo 0 I.E. SMA(20)[0] or MACD(1,1,1).Diff[0], we will be referencing the plot value associated with the current bar. If you want to save that bar number, you can assign CurrentBar to a class level variable and then subtract it from CurrentBar. I.E. SMA(20)[CurrentBar - YourSavedCurrentBarValue]
We look forward to assisting.

Comment