GetOscStudy

ICE Data Services -

GetOscStudy() Advanced GET Study Functions

Creates object, which allows to get values of indicator Advanced GET Oscillator in EFS scripts. The GET Oscillator (also known as the Elliott Oscillator) is simply the difference between two moving averages.

Syntax
GetOscStudy( nMavg1 , nMavg2 , Stength )

Parameters
Parameter: Description: Default:
nMavg1 Number of periods to use for calculation of the first MA.

 

n/a
nMavg2 Number of periods to use for calculation of the second MA.

 

n/a
Strength The Break Out Bands Strength %

 

n/a

Member(s)
Syntax: Returned value:
GetOscStudy.OSC Returns the value of Oscillator

 

GetOscStudy.UP Returns the value of the upper Break Out Band

 

GetOscStudy.DN Returns the value of the lower Break Out Band

 


Notes
Only available in versions 7.9 or later.

Code Example
Tom's Oscillator:
function preMain(){    setPlotType(PLOTTYPE_HISTOGRAM, 0);    }var vOsc = null;function main( ) {    if (vOsc == null) vOsc = new GetOscStudy( 5, 35, 100 );    return new Array(            vOsc.getValue(GetOscStudy.OSC),             vOsc.getValue(GetOscStudy.UP),            vOsc.getValue(GetOscStudy.DN)            );}

Extended Oscillator:
function preMain(){    setPlotType(PLOTTYPE_HISTOGRAM, 0);    }var vOsc = null;function main( ) {    if (vOsc == null) vOsc = new GetOscStudy( 5, 17, 100 );    return new Array(            vOsc.getValue(GetOscStudy.OSC),             vOsc.getValue(GetOscStudy.UP),            vOsc.getValue(GetOscStudy.DN)            );}


See Also
Advanced GET Studies