AGet.sar()

ICE Data Services -

AGet.sar() Advanced GET Studies

Returns the series or values of the GET Parabolic study.
Parabolic SAR is a display of "Stop And Reverse" points for a particular market. When the market touches or crosses a point, this indicates that you should reverse your position. If you are long, for example, go short. If you are short, go long. The Parabolic SAR assumes that you are always in the market.
Syntax
AGet.sar( Start , Increment , Maximum , ReturnSeries [, Series | sym() | inv() ][, BarIndex ] )
Parameters
Parameter: Description: Default:
Start An integer which represents the number of the initial acceleration.

 

n/a Increment An integer which represents the number that determines how much to increase acceleration over time.

 

n/a Maximum An integer which represents the maximum amount of acceleration that can be achieved.

 

n/a ReturnSeries Allows to choose what series of the GET Parabolic study should be returned. To choose use the follwing constants:
SAR_SAR = 0
SAR_OPTIMIZED = 1
SAR_TUNED = 2

 

n/a Series | sym() | inv() [Optional]  Series Object or function of sym() or inv() to determine symbol/interval source for the study.

 

Base sym/int BarIndex [Optional]  Bar index of series to retrieve.

 

n/a
Return Value(s)
Returns a Series Object when
nBarIndex is not specified.
Returns a single value when nBarIndex is specified.
Notes
Only available in versions 11.8 or later.
Code Example
Creating Series Example:
var bInit = false;var xSer = null;setPriceStudy(true);function main(){        if(bInit == false){        xSer = getSeries(AGet.sar(20, 20, 200, SAR_SAR));        bInit = true;    };    return xSer;} 
See Also
Advanced GET Study Functions