ohlc4()

eSignal EFS 2

ohlc4()

Top  Previous  Next

 

ohlc4( [, sym()] [, inv()] )

 

This is a macro that can be passed as input to any function that expects an eSignal series. ohlc4() creates a series based on (open+high+low+close)/4.

 

Parameters

 

sym()

optional. specify a symbol to use

inv()

optional. specify a bar interval to use

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       //return the value of an ema based on

       //(open+high+low+close)/4 from 10 bars ago.

       myVar = ema( 20, ohlc4(), -10 );

 

}

 

hl2()

hlc3()