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
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| rsi_period | int | 14 |
| stoch_period | int | 14 |
| k_smooth | int | 3 |
| d_smooth | int | 3 |
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.