REF

Reference prior values
Description
References prior values for a specified indicator and displays them on the chart. Does this for the last M values and offsets them by N positions.
Category
Native
Parameters
Indi ( Default: C Min: Max: )
N ( Default: 1 Min: 0 Max: 10000 )
M ( Default: 20 Min: 0 Max: 10000 )
Chart Script

A:=REF(FML(Indi),N);
BackSet(IsLastValue(A),A,M)