GlossaryStochastic RSI
Stochastic RSI
The Stoch RSI applies the Stochastic formula not to the price but to the RSI. It shows where the current RSI sits within its own range over recent candles, and so it reacts much faster than the RSI itself.
Calculation
The calculation has two stages followed by two smoothings. is the close, the RSI length, the Stochastic length, the %K smoothing and the %D smoothing.
Stage 1: the RSI
A Wilder RSI on the closes. Gains and losses are smoothed with the factor ; the starting value is the simple mean of the first values:
is formed the same way; at the RSI is 100. Unlike in the standalone RSI, the very first candle already counts here as a change of zero. The RSI therefore begins one candle earlier, which only affects the first values at the start of the history.
Stage 2: the Stochastic of the RSI
Highest and lowest RSI of the last candles, including the current one:
It is only calculated once the RSI exists for all candles of the window, not with a half-filled window. If the RSI was the same across the whole window, there is no value and the line pauses.
Smoothing
With the default settings, the first %D value appears on candle 31.
How to read it
The main line is %K: red from 80 up, green at 20 and below, gray in between. %D is the orange companion line. Reference lines sit at 20, 50 and 80.
- Extremes are common: The Stoch RSI often reaches 0 and 100. That only means the RSI is at the low or high of its last values, not that the RSI itself is oversold or overbought. An RSI of 55 can produce a Stoch RSI of 0.
- Crossovers: If %K crosses the %D line upward from the lower zone, short-term momentum turns up; if it crosses downward from the upper zone, it turns down.
- Timing in a trend: It works best as fine-tuning within a trend you determine some other way, for example for pullbacks in an uptrend that turn in the lower zone.
Settings
| Setting | Default | Effect |
|---|---|---|
| RSI length | 14 | Length of the RSI from stage 1 (2–50). |
| Stochastic length | 14 | Window for the highest and lowest RSI (2–50). |
| %K smoothing | 3 | SMA length over the raw value (1–50). |
| %D smoothing | 3 | SMA length over %K (1–50). |
Limitations
- As an oscillator of an oscillator, it is very sensitive and produces many signals. In quiet phases it jumps across the whole scale on even small RSI moves.
- On its own it says little about the direction of the trend.