** AGet.stochasticRSI() ** Advanced GET Studies

Returns the series or values of the **GET Stochastic RSI** study.

The Stochastic RSI is the Stochastics indicator calculated using the values of another indicator, the RSI, instead of price values.

__Syntax__

**AGet.stochasticRSI( ** * LengthRSI * **, ** * Length * **, ** * %K * **, ** * %D * **, ** * ReturnSeries * **[,** * Series | sym() | inv() * **][,** * BarIndex * **] )**

__Parameters__

Parameter: |
Description: |
Default: |

LengthRSI |
An integer which represents the period of the moving average that is used to the RSI. | 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 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 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);

}

__See Also__