stoch_rsi

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.stoch_rsi(source: ArrayLike,rsi_period: int = 14,stoch_period: int = 14,k_smooth: int = 3,d_smooth: int = 3) -> dict[str, np.ndarray]

The stochastic oscillator applied to the relative strength index.

Parameters

NameTypeDefault
sourceArrayLike
rsi_periodint14
stoch_periodint14
k_smoothint3
d_smoothint3

Indicator: Stochastic RSI

The RSI is Wilder's. Its position in its own range over stoch_period bars, times 100, reads as the RSI itself when that range is 0. k and d are simple averages of it.