Stochastic RSI
systemic:core-srsiIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Window | Whole number | The look-back length, in bars, of both the RSI calculation and the Stochastic min/max range. |
| RSI Smooth Factor | Whole number | The window, in bars, of the average that turns the raw StochRSI into the %K line. |
| SRSI Smooth Factor | Whole number | The window, in bars, of the average that turns %K into the %D (signal) line. |
| Price Data | Number series | The price series used to calculate the RSI, which then feeds the Stochastic RSI calculation. |
Outputs
| Name | Type | Description |
|---|---|---|
| SRSI | Number series | The unsmoothed Stochastic RSI: where the current RSI sits within its recent range. |
| SRSIK | Number series | The smoothed Stochastic RSI, the main signal line in most strategies. |
| SRSID | Number series | The smoothed %K line, used as a "signal line" for crossover strategies. |
Cost
0.217 + 0.0169·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Problem That Created StochRSI
RSI is one of the most popular indicators in trading. But it has a weakness: it rarely reaches extreme levels.
RSI ranges from 0 to 100. Above 70 is considered overbought and below 30 oversold. In practice, RSI spends much of its time between 40 and 60, the neutral zone where it says very little.
In their 1994 book The New Technical Trader, Tushar Chande and Stanley Kroll asked: What if RSI could reach extremes more often and so be more useful?
Their solution: apply the Stochastic formula to RSI itself. Instead of asking "Is RSI high or low in absolute terms?", ask "Is RSI high or low compared to its recent range?"
The Core Insight
Consider this scenario:
- RSI is currently at 55
- Over the past 14 bars, RSI ranged from 45 to 60
In absolute terms, 55 is neutral, right in the middle. But relative to its recent range, 55 is near the top (close to the maximum of 60).
StochRSI captures this:
Using our example:
RSI is at a neutral 55, but StochRSI shows that momentum is in the upper third of its recent range.
Visual Comparison: RSI vs. StochRSI
flowchart TD
subgraph RSI["Standard RSI"]
R1["Ranges 0-100"]
R2["Overbought: >70"]
R3["Oversold: <30"]
R4["Problem: Rarely hits extremes"]
end
subgraph SRSI["Stochastic RSI"]
S1["Ranges 0-1"]
S2["Overbought: >0.80"]
S3["Oversold: <0.20"]
S4["Frequently hits extremes ✓"]
end
RSI --> |"Apply Stochastic formula"| SRSI
The transformation works like raising the contrast of a photo: it stretches the range so that small differences become visible.
What This Module Outputs
This module has three outputs, each with a different purpose:
| Output | What It Is | Sensitivity | Use Case |
|---|---|---|---|
| SRSI | Raw Stochastic RSI | Highest | Research, seeing unfiltered data |
| SRSIK (%K) | Smoothed SRSI | Medium | Main signal line |
| SRSID (%D) | Smoothed %K | Lowest | Signal line for crossovers |
flowchart LR
subgraph Calculation["Calculation Flow"]
P["Price"] --> RSI["RSI (14)"]
RSI --> RAW["Raw StochRSI"]
RAW --> K["%K (smoothed)"]
K --> D["%D (smoothed again)"]
end
subgraph Outputs["Module Outputs"]
O1["SRSI output"]
O2["%K output"]
O3["%D output"]
end
RAW --> O1
K --> O2
D --> O3
Why Three Outputs?
- Raw SRSI is very noisy. It moves quickly between 0 and 1 and gives many false signals.
- %K smooths the noise so that patterns become visible.
- %D smooths %K further. It is a "signal line" for crossover strategies, like the signal line of MACD.
Most strategies use the %K and %D outputs together.
The Trade-Off: Sensitivity vs. Reliability
StochRSI solves RSI's "stuck in the middle" problem, but creates a new one: too many signals.
StochRSI reaches extremes often, so many overbought and oversold readings do not lead to reversals. This is why %K and %D are smoothed, and why StochRSI works best as a timing tool inside a larger trend-following system, not on its own.
| Approach | Problem |
|---|---|
| RSI alone | Too few signals: extremes are rare |
| StochRSI alone | Too many signals: false positives in trends |
| StochRSI + trend filter | Best of both: sensitive timing within confirmed trends |
Reading the Signals
Zone-Based Interpretation
| StochRSI | Zone | Meaning |
|---|---|---|
| > 0.80 | Overbought | RSI near top of its recent range |
| 0.20 - 0.80 | Neutral | No extreme reading |
| < 0.20 | Oversold | RSI near bottom of its recent range |
Important: "Overbought" does not mean "sell now." It means momentum is high relative to recent history. In strong uptrends, StochRSI can stay overbought for a long time.
Crossover Signals
| Event | Signal | Strength |
|---|---|---|
| %K crosses above %D in oversold zone (<0.20) | Bullish | Strong |
| %K crosses above %D in neutral zone | Bullish | Weak |
| %K crosses below %D in overbought zone (>0.80) | Bearish | Strong |
| %K crosses below %D in neutral zone | Bearish | Weak |
The best signals combine zone extremes with crossovers.
When StochRSI Excels
1. Mean-Reversion Trading in Ranges
StochRSI works well when price is range-bound. A drop into oversold is a buy signal and a rise into overbought is a sell signal. Here the frequent extreme readings are an advantage.
2. Entry Timing Within Trends
You have identified an uptrend with other methods (moving averages, price structure). StochRSI dips into oversold then mark entry points: pullbacks within the larger trend.
3. Divergence Detection
Because StochRSI moves more than RSI, divergences are easier to spot:
- Price makes lower low, but StochRSI makes higher low → bullish divergence
- Price makes higher high, but StochRSI makes lower high → bearish divergence
4. Crypto and Forex (Round-the-Clock Markets)
StochRSI's sensitivity suits markets that trade around the clock, where momentum can shift at any hour.
When StochRSI Struggles
1. Strong Trending Markets
In a strong uptrend, StochRSI spends most of its time above 0.80 and gives repeated "overbought" readings while price keeps rising. Selling on each overbought signal would be costly.
2. Quiet Markets
In quiet markets (overnight sessions, holidays), small price moves can push StochRSI to extremes and create noise.
3. As a Standalone System
StochRSI gives too many signals to be used alone. It needs trend context or other confirmation.
Missing Data
A bar with no Price Data (data gap, weekend, holiday) is empty on all three outputs. No earlier reading is carried forward and no neutral value is filled in. Window counts only bars that have a price: the RSI and the StochRSI range skip gaps and go straight from the last bar before a gap to the first bar after it.
The first bars are empty (warm-up). SRSI needs 2 x Window − 1 bars with a price for its
first value (Window for the RSI, Window again for the Stochastic range). %K needs a further
RSI Smooth Factor − 1 bars, and %D a further SRSI Smooth Factor − 1 bars. SRSI is also empty when
the RSI was flat over the whole window, because the range is zero.
Configuration
| Input | Typical value | What It Controls |
|---|---|---|
| Window | 14 | Look-back of the RSI and of the StochRSI range |
| RSI Smooth Factor | 3 | Smoothing applied to create %K |
| SRSI Smooth Factor | 3 | Smoothing applied to create %D |
The module has no built-in defaults: you set all three values.
Input Tuning
| Goal | Window | Smooth Factors | Result |
|---|---|---|---|
| More signals, faster response | 7-10 | 2-3 | Noisy but responsive |
| Balanced (standard) | 14 | 3 | Classic setting |
| Fewer signals, more reliable | 14-21 | 4-5 | Smoother, delayed |
Creative Applications
1. Multi-Period Confirmation
Check StochRSI on several periods:
- Daily StochRSI oversold + weekly StochRSI rising from oversold = stronger bullish signal
- A signal is stronger when both periods agree
2. The "Extreme Exhaustion" Setup
StochRSI reaches an extreme (>0.95 or <0.05), then reverses quickly through the middle. This "failure to hold the extreme" pattern often comes before sharp reversals.
3. StochRSI on Volatility
Apply StochRSI to ATR or VIX instead of price:
- StochRSI(ATR) hitting oversold → Volatility at recent lows → Breakout may be coming
- StochRSI(VIX) hitting overbought → Fear at recent extremes → Potential capitulation
4. Sector Rotation Timing
Calculate StochRSI for several sector ETFs. Favor sectors where StochRSI is rising from oversold, and avoid sectors where it is falling from overbought.
Combining with Other Modules
| Combination | Strategy |
|---|---|
| StochRSI + EMA | Use only StochRSI signals in the direction of the EMA trend |
| StochRSI + MACD | StochRSI for timing, MACD for trend confirmation |
| StochRSI + Bollinger Bands | StochRSI oversold + price at lower band = strong long setup |
| StochRSI + Volume | Require volume spike on StochRSI crossover signals |
Historical Context
Tushar Chande and Stanley Kroll introduced Stochastic RSI in their 1994 book The New Technical Trader. Their insight was that RSI, although a "momentum oscillator," did not oscillate enough: it spent too much time in the middle.
They applied the Stochastic formula, which George Lane had developed decades earlier for prices, and got an indicator that really moves between extremes. The cost is more noise, which smoothing and trend filters can control.
Three decades later, StochRSI is still popular, especially with crypto traders who value its sensitivity in fast markets.
Indicator Assessment
%%{init: {"quadrantChart": {"titleFontSize": 16}}}%%
quadrantChart
title Stochastic RSI Assessment
x-axis Low Complexity --> High Complexity
y-axis Low Reliability --> High Reliability
quadrant-1 Complex but Reliable
quadrant-2 Simple and Reliable
quadrant-3 Simple but Unreliable
quadrant-4 Complex and Unreliable
StochRSI - Stocks: [0.45, 0.55]
StochRSI - Crypto: [0.45, 0.65]
| Dimension | Stocks/Macro | Crypto | Notes |
|---|---|---|---|
| Popularity | 8/10 | 9/10 | Widely used since 1994; very popular in crypto, where its sensitivity suits volatile markets |
| Reliability | 5.5/10 | 6.5/10 | Too many signals in isolation; requires trend filters; crypto's momentum favors StochRSI |
| Complexity | 4.5/10 | 4.5/10 | Moderate - derivative of RSI with Stochastic formula; three outputs (%K, %D, raw) add complexity |
| Versatility | 7/10 | 8/10 | Works across periods; adjustable inputs; good for mean reversion and timing pullbacks |
| Recent Interest | 7/10 | 9/10 | Steady in stocks; surging in crypto where traders value quick momentum reads |
Assessment Rationale
-
Popularity: Introduced by Chande and Kroll in 1994, StochRSI is available on all major charting platforms. It is especially popular in crypto markets, where traders value its sensitivity.
-
Reliability: StochRSI's main strength, sensitivity, is also its weakness. It gives many signals, and without context (trend filters, confirmation) false positives are common. In trending markets, it can stay overbought or oversold for a long time. Crypto's sharp mean-reversion moves make StochRSI more reliable there.
-
Complexity: Moderate. It is an indicator of an indicator (Stochastic of RSI of price). Three outputs (%K, %D, raw SRSI) and two smoothing inputs need some study. It is less simple than RSI alone, but still accessible.
-
Versatility: Useful for timing entry signals within trends, mean reversion, divergence detection and multi-period confirmation. The sensitivity that causes problems in trending stocks is valuable in crypto's fast momentum shifts.
-
Recent Interest: Steady in traditional markets. Interest has grown among crypto traders, who like its fast response in 24/7 markets.
Further Reading
- Investopedia: Stochastic RSI
- TrendSpider: Stochastic RSI Complete Guide
- Understanding RSI — The foundation indicator