midpoint()

eSignal EFS 2

midpoint()

Top  Previous  Next

 

midpoint( numBars, series )

 

New in EFS2. This function will return the midpoint of a series within numBars number of bars. It is implemented as ( highest-val-found + lowest-val-found ) divided by 2.

 

Parameters

 

numBars

the number of bars back to search

series

the series in which to search for the value

 

Usage

 

function main() {

var myVar1;

 

       //find the midpoint of the closes over the last 50 bars

       myVar1 = midpoint( 50, close() );

 

}