Stochastic RSI Calculator
Technical indicators
- Position: the current RSI of 62.40 sits between the lookback low 28.60 and high 71.30, a range 42.70 points wide.
- Normalising: (62.40 - 28.60) / 42.70 = 0.7916, which rescales the RSI onto a 0 to 1 stochastic scale.
- Smoothing: averaging %K with the two previous readings 0.74 and 0.68 gives the %D signal line at 0.7372.
- Stochastic RSI result: 0.7916, in the mid-range zone beyond the 0.80 / 0.20 reference bands.
The RSI is already an oscillator, so applying a stochastic transformation to it sounds like a gimmick — until you watch how RSI behaves in a trend. In a strong advance RSI can sit between 55 and 75 for months, technically never overbought and never oversold, while all the tradable swings happen inside that narrow band. StochRSI stretches whatever band RSI is actually using onto a full 0 to 1 scale.
The formula mirrors the price stochastic exactly: (current RSI - lowest RSI) / (highest RSI - lowest RSI) over the lookback, conventionally 14 RSI values. The result, %K, is smoothed with its two predecessors into the %D signal line. Chande and Kroll published the construction in 1994 as a sensitivity upgrade for range-bound instruments.
Enter the current RSI, its lookback high and low, and the two previous %K readings. The calculator returns %K, its percentage form, %D, and the width of the RSI range being stretched.
Worked examples
Stochastic RSI at a neutral reading
(62.4 · 28.6 · 71.3 · 0.74 · 0.68)
| Stochastic RSI %K | 0.7916 |
| %K (%) | 79.16 |
| %D (3-period average) | 0.7372 |
| RSI range width | 42.70 |
Stochastic RSI at an overbought reading
(23.85 · 18.2 · 64.5 · 0.09 · 0.14)
| Stochastic RSI %K | 0.1220 |
| %K (%) | 12.20 |
| %D (3-period average) | 0.1173 |
| RSI range width | 46.30 |
Stochastic RSI at an oversold reading
(81.2 · 35.4 · 84.6 · 0.88 · 0.83)
| Stochastic RSI %K | 0.9309 |
| %K (%) | 93.09 |
| %D (3-period average) | 0.8803 |
| RSI range width | 49.20 |
An oscillator of an oscillator
Because the transformation is a pure rescaling, StochRSI inherits RSI's information but none of its calibration. A %K of 0.7916, the first worked example, says only that RSI sits 79 percent of the way up its recent range — it says nothing about whether RSI itself is at 62.40, as here, or at 34. Two instruments can print identical StochRSI values with completely different momentum states, which is both the tool's power and its trap.
The pinning behaviour follows from the same maths. RSI extremes within the window set the rails, so a fresh RSI high forces %K to exactly 1 and it can stay glued there while RSI grinds sideways at its peak. Price stochastics pin too, but RSI's own boundedness makes StochRSI the most rail-prone of the common oscillators.
| %K zone | Meaning | Caution |
|---|---|---|
| 0.80 to 1.00 | RSI near its range high | Can pin at 1 through a whole trend leg |
| 0.20 to 0.80 | Mid-range momentum | Crossovers of %D carry the signals |
| 0.00 to 0.20 | RSI near its range low | Can pin at 0 in persistent declines |
The 0.80 / 0.20 bands
The conventional bands sit at 0.80 and 0.20, tighter than the RSI's own 70/30 because the rescaling spends so much time near the rails. Crossing down through 0.80 after a pin is the classic momentum-rollover signal; crossing up through 0.20 after a low pin marks momentum returning. The overbought worked example prints 0.9309 with %D at 0.8803 — both lines in the top zone, the configuration that precedes those rollover watches.
The %D line matters more here than in the price stochastic because %K is so jumpy. With %K computed from a ratio of RSI distances, a quiet day can halve it; the 3-period average restores a tradeable trigger. Signals are conventionally taken when %K crosses %D inside the outer zones, not in mid-range where the pair simply churns.
- Match the lookback to the RSI period: 14 and 14 is the published default pairing.
- Enter the previous %K values as decimals between 0 and 1, not percentages.
- If the RSI high equals the low, the ratio is undefined — the window was perfectly flat.
- A pinned %K at 1.00 with falling %D is the earliest rollover warning the tool gives.
- Always check the raw RSI level alongside; %K alone cannot tell 62 from 34.
Worked examples
Example 1: Current RSI 62.4; Lowest RSI in lookback 28.6; Highest RSI in lookback 71.3; Previous %K (0 to 1) 0.74; %K two periods ago (0 to 1) 0.68. Stochastic RSI %K = 0.7916. Supporting values: %K (%) 79.16; %D (3-period average) 0.7372; RSI range width 42.70. Position: the current RSI of 62.40 sits between the lookback low 28.60 and high 71.30, a range 42.70 points wide. Normalising: (62.40 - 28.60) / 42.70 = 0.7916, which rescales the RSI onto a 0 to 1 stochastic scale. Smoothing: averaging %K with the two previous readings 0.74 and 0.68 gives the %D signal line at 0.7372. Stochastic RSI result: 0.7916, in the mid-range zone beyond the 0.80 / 0.20 reference bands.
Example 2: Current RSI 23.85; Lowest RSI in lookback 18.2; Highest RSI in lookback 64.5; Previous %K (0 to 1) 0.09; %K two periods ago (0 to 1) 0.14. Stochastic RSI %K = 0.1220. Supporting values: %K (%) 12.20; %D (3-period average) 0.1173; RSI range width 46.30. Position: the current RSI of 23.85 sits between the lookback low 18.20 and high 64.50, a range 46.30 points wide. Normalising: (23.85 - 18.20) / 46.30 = 0.1220, which rescales the RSI onto a 0 to 1 stochastic scale. Smoothing: averaging %K with the two previous readings 0.09 and 0.14 gives the %D signal line at 0.1173. Stochastic RSI result: 0.1220, in the oversold zone beyond the 0.80 / 0.20 reference bands.
Example 3: Current RSI 81.2; Lowest RSI in lookback 35.4; Highest RSI in lookback 84.6; Previous %K (0 to 1) 0.88; %K two periods ago (0 to 1) 0.83. Stochastic RSI %K = 0.9309. Supporting values: %K (%) 93.09; %D (3-period average) 0.8803; RSI range width 49.20. Position: the current RSI of 81.20 sits between the lookback low 35.40 and high 84.60, a range 49.20 points wide. Normalising: (81.20 - 35.40) / 49.20 = 0.9309, which rescales the RSI onto a 0 to 1 stochastic scale. Smoothing: averaging %K with the two previous readings 0.88 and 0.83 gives the %D signal line at 0.8803. Stochastic RSI result: 0.9309, in the overbought zone beyond the 0.80 / 0.20 reference bands.
Where stochastic RSI misleads
The rescaling amplifies noise exactly when RSI compresses. In a dead range RSI might wander between 48 and 52; StochRSI will still sweep the full 0 to 1 scale, manufacturing overbought and oversold signals from four points of RSI movement. The range-width supporting value is the tell: when it shrinks toward single digits, the oscillator is shouting about nothing.
Lookback choice is the other trap. A 14-period window that happens to exclude one old RSI spike suddenly re-rails every reading when the spike rolls off, shifting %K without any new price information. Longer windows stabilise the rails at the cost of the sensitivity that justified the tool in the first place.
Stochastic RSI in practice
Range traders use StochRSI as the trigger and the price range as the map: buy the support test when %K crosses up through %D out of the bottom zone, sell resistance on the mirror image. Trend traders use it in reverse, treating deep %K pullbacks inside a rising RSI regime as reload points rather than reversals.
Either way it works best as a timing layer on top of a separate view about direction. The indicator deliberately throws away the level information that tells you the regime, so something else — trend structure, the raw RSI, moving averages — has to supply it.
Tuning the lookback and the smoothing
Two parameters govern this indicator and both are routinely mistuned. The first is the stochastic lookback over RSI values: shortening it below about 10 makes the rails so local that %K pins almost permanently, while stretching it past 21 reintroduces the sluggishness the tool was built to escape. The published 14-over-14 pairing survives because it balances those failure modes on daily charts of liquid instruments; weekly charts and quieter instruments often breathe better with the same numbers, since the RSI series itself is smoother there.
The second parameter is the smoothing of %K into %D and, in many implementations, a further slowing of %K itself — the 'stochastic RSI fast/slow' distinction on charting platforms. A slowed %K (a 3-period average before the signal average) trades a day of responsiveness for a large cut in whipsaws, and for most traders that trade is worth making. What is not worth doing is smoothing until the indicator becomes a lagging copy of RSI itself, at which point the honest move is to delete it and read the RSI.
A practical calibration test: overlay the indicator on a year of your instrument's history and count how often %K pins at exactly 0 or 1 for three or more consecutive sessions. Occasional pinning is information; constant pinning means the lookback is too short for that instrument's RSI rhythm, whatever the defaults say.
FAQs
What %K does the first example give?
0.7916, from an RSI of 62.40 sitting between a lookback low of 28.60 and high of 71.30.
What %D pairs with it?
0.7372, the average of %K 0.7916 with the previous readings 0.74 and 0.68.
What %K does the oversold example show?
0.1220, inside the bottom zone, with %D at 0.1173 confirming the pin.
How wide is the RSI range in the first example?
42.70 points, from 28.60 to 71.30 — wide enough for the rescaling to be meaningful.
What current RSI feeds the overbought example?
81.20, against a lookback high of 84.60, producing a %K of 0.9309.
Why does StochRSI pin at 0 and 1 so often?
Because any fresh RSI extreme inside the window sets a rail and forces %K to exactly 0 or 1 until a new extreme replaces it.