efs()

eSignal EFS 2

efs()

Top  Previous  Next

 

efs( pathToEFS, [, seriesIndex] [, sym/inv] [, parameters] )

 

New in EFS2. Returns a series object representing a specific seriesIndex value as calculated from the given external EFS script.

 

Parameters

 

pathToEFS

the path and filename of the EFS script to call

seriesIndex

optional. index into array of return values. defaults to 0.

sym/inv

optional. if used, the external EFS will be loaded into the specified symbol or interval's context

parameters

optional. parameters, if any, required by the EFS script you are calling

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       //call an external EFS called "myCustomEFS.efs" and load it into

       //the context of IBM 15-min bars. we also pass two parameters

       //to the script.

       myVar = efs( "myCustomEFS.efs", 0, sym( "IBM,15" ), 20, 5 );

 

 

 

}

 

efsExternal()