inv()

eSignal EFS 2

inv()

Top  Previous  Next

 

inv( interval )

 

New in EFS2. Converts a bar interval into a Series object. It is used in conjunction with all other series-type functions and is an important aspect of EFS2's multi-timeframe support.

 

Parameters

 

interval

the interval to convert

 

Usage

 

Note that when passing a non-numeric interval value to inv(), you must enclose the value in quotes. Examples would be inv("D") or inv("W").

 

 

function main() {

var myVar;

 

       ...

       ...

 

       //get the open price from the daily series of the symbol

       //we are charting

       myVar = open( 0, inv("D") );

       

       //get the 25-bar ema value from the 5-min bar interval of the

       //symbol we are charting

       myVar = ema( 25, inv(5) );

 

       //calculate a 10-bar ema of the 14-bar RSI from the 1-min

       //bar interval of the symbol we are charting

       myVar = ema( 10, rsi( 14, inv(1) ) );

 

 

}