Systemicbeta

Stochastic RSI

systemic:core-srsiIndicators

Inputs

NameTypeDescription
WindowWhole numberThe look-back length, in bars, of both the RSI calculation and the Stochastic min/max range.
RSI Smooth FactorWhole numberThe window, in bars, of the average that turns the raw StochRSI into the %K line.
SRSI Smooth FactorWhole numberThe window, in bars, of the average that turns %K into the %D (signal) line.
Price DataNumber seriesThe price series used to calculate the RSI, which then feeds the Stochastic RSI calculation.

Outputs

NameTypeDescription
SRSINumber seriesThe unsmoothed Stochastic RSI: where the current RSI sits within its recent range.
SRSIKNumber seriesThe smoothed Stochastic RSI, the main signal line in most strategies.
SRSIDNumber seriesThe smoothed %K line, used as a "signal line" for crossover strategies.

Cost

18
credits per run
1,000
bars

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:

StochRSI=RSI−RSIminRSImax−RSImin\text{StochRSI} = \frac{\text{RSI} - \text{RSI}_{min}}{\text{RSI}_{max} - \text{RSI}_{min}}

Using our example:

StochRSI=55−4560−45=1015=0.67\text{StochRSI} = \frac{55 - 45}{60 - 45} = \frac{10}{15} = 0.67

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:

OutputWhat It IsSensitivityUse Case
SRSIRaw Stochastic RSIHighestResearch, seeing unfiltered data
SRSIK (%K)Smoothed SRSIMediumMain signal line
SRSID (%D)Smoothed %KLowestSignal 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.

ApproachProblem
RSI aloneToo few signals: extremes are rare
StochRSI aloneToo many signals: false positives in trends
StochRSI + trend filterBest of both: sensitive timing within confirmed trends

Reading the Signals

Zone-Based Interpretation

StochRSIZoneMeaning
> 0.80OverboughtRSI near top of its recent range
0.20 - 0.80NeutralNo extreme reading
< 0.20OversoldRSI 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

EventSignalStrength
%K crosses above %D in oversold zone (<0.20)BullishStrong
%K crosses above %D in neutral zoneBullishWeak
%K crosses below %D in overbought zone (>0.80)BearishStrong
%K crosses below %D in neutral zoneBearishWeak

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

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

InputTypical valueWhat It Controls
Window14Look-back of the RSI and of the StochRSI range
RSI Smooth Factor3Smoothing applied to create %K
SRSI Smooth Factor3Smoothing applied to create %D

The module has no built-in defaults: you set all three values.

Input Tuning

GoalWindowSmooth FactorsResult
More signals, faster response7-102-3Noisy but responsive
Balanced (standard)143Classic setting
Fewer signals, more reliable14-214-5Smoother, 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

CombinationStrategy
StochRSI + EMAUse only StochRSI signals in the direction of the EMA trend
StochRSI + MACDStochRSI for timing, MACD for trend confirmation
StochRSI + Bollinger BandsStochRSI oversold + price at lower band = strong long setup
StochRSI + VolumeRequire 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]
DimensionStocks/MacroCryptoNotes
Popularity8/109/10Widely used since 1994; very popular in crypto, where its sensitivity suits volatile markets
Reliability5.5/106.5/10Too many signals in isolation; requires trend filters; crypto's momentum favors StochRSI
Complexity4.5/104.5/10Moderate - derivative of RSI with Stochastic formula; three outputs (%K, %D, raw) add complexity
Versatility7/108/10Works across periods; adjustable inputs; good for mean reversion and timing pullbacks
Recent Interest7/109/10Steady 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

Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5