Returns the series or values of the GET Stochastic RSI study.Syntax
The Stochastic RSI is the Stochastics indicator calculated using the values of another indicator, the RSI, instead of price values.
AGet.stochasticRSI( LengthRSI , Length , %K , %D , ReturnSeries [, Series | sym() | inv() ][, BarIndex ] )Parameters
Parameter: Description: Default:
n/a Length An integer which represents the number of bars used to calculate the %K.
n/a %K An integer which represents the period of the moving average that is used to smooth %K.
n/a %D An integer which represents the period of the moving average that is applied to %K to find %D.
n/a ReturnSeries Allows to choose what series of the GET Stochastic RSI study should be returned. To choose use the follwing constants:
STOCHASTICRSI_K = 0
STOCHASTICRSI_D = 1
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 whennBarIndex 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:See Also
var bInit = false;var xSer1 = null;var xSer2 = null;function main(){ if(bInit == false){ xSer1 = getSeries(AGet.stochasticRSI(14, 14, 3, 3, STOCHASTIC_K)); xSer2 = getSeries(AGet.stochasticRSI(14, 14, 3, 3, STOCHASTIC_D)); bInit = true; }; return new Array (xSer1,xSer2);}
Advanced GET Study Functions
AGet.stochastic()