hl2()

eSignal EFS 2

hl2()

Top  Previous  Next

 

hl2( [, sym()] [, inv()] )

 

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

 

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

       //(high+low)/2 from 10 bars ago.

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

 

}

 

hlc3()

ohlc4()