Stochastic RSI - FXB.ta.StochRSI

The FXB.ta.StochRSI class calculates the Stochastic oscillator of RSI values. It is a value-based calculation because RSI is value-based. Parameters and output are the same as for FXB.ta.Stochastic, with the addition of an extra parameter for specifying the RSI period:

Parameter

Description

kPeriod

Period for the %K values

dPeriod

Period for the %D values

slowing

Slowing/smoothing which is applied to the %K values

maType

Type of moving average for the smoothing. Defaults to a simple moving average (sma / 0).

rsiPeriod

Number of bars for the RSI calculation