Stochastic RSI
What SteadyEdge calculates
This page documents the exact runtime calculation for the listed filter IDs. Formula symbols use O , H , L , C , and V for the current candle open, high, low, close, and volume; p is the configured lookback.
- Registry filter IDs: stoch_rsi
Exact formula
RSI_t = RSI(rsi_period)
HH = max(RSI, stoch_period)
LL = min(RSI, stoch_period)
rawK = 100 * (RSI_t - LL) / (HH - LL)
value = SMA(rawK, smooth_k)
if HH = LL or range is unavailable: value = 50
Parameters, defaults, and bounds
- rsi_period : default 14 ; 2–50
- stoch_period : default 14 ; 1–50
- smooth_k : default 3 ; 1–20
How the rule passes
above requires a strict > comparison.
below requires a strict < comparison.
Data, timing, and warm-up
Candle filters use the rule timeframe and the latest candle at or before the evaluation time. A non-finite calculated value does not pass.
Every rule in the same filter set must pass. Test Filters and a backtest validate the complete set.
Related articles
- Filters Reference
- How Entry Filters Work
- Timeframe, Operator, Value, And Params