What's newContact support
PurchaseDownload trialLinks


Offset

 

All studies calculate the value at the current bar. Some methods need to look back to previous bars. The Offset function allows you to retrieve the value of previous bars.  This is useful to determine the crossovers of indicators  An example of how this is used to detect crossovers can be found in the MACD Trading System, which detects the crossover of the MACD Oscillator and the Signal Line

Parameters:

BarsToShift A positive or negative shift

Arguments:

OHLC of TimeFrame or any output Indicator of the TimeFrame

Output Indicators:

shifted

Example:

Study Name Expanded in a 3 minute timeframe:

I3_OffSet(5)(I3CloseI3)_I3

This study retrieves the value 5 bars back(from the current bar) on the 3 minute timeframe, of the 3 minute close.

The output indicators names are appended to the study name, that is if the study name is sn1 then the output indicator is

sn1::shifted

 


Copyright © 2000. All Rights Reserved. Storm Chaser Technologies