AGet.stochasticRSI()

ICE Data Services -

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

Advanced GET Study Functions

AGet.stochastic()