Kairos™

Offset Indicator

Offset is used to retrieve the previous bars of a moving indicator or bar.  Use Offset indicator to retrieve previous values of indicators.  Use 'Open', 'High','Low','Close', or 'Vol' indicators to retrieve previous values of the Open, High, Low, Close or Volume.  

Parameters

BarsToShift - The bars back to retrieve.  The most recent bar is the 0 bar, so if you want to retrieve 1 bar back, use a value of 1 for BarsToShift.  

For a SimpleMA indicator with a period of 10 and you want to retrieve the previous bar.

Above is the SimpleMA


Above is the Offset of the Simple Moving Average. The offset is 1.


Above is a chart of the Offset Indicator.  The blue line is the offset of the Simple Moving Average.  The black line is the Simple Moving Average


The Offset Indicator can be used in conditions.