← Back to Home
Trading Signal / Indicator
πŸ”¬

Stochastic RSI (StochRSI)

Ultra-sensitive momentum oscillator combining RSI and Stochastic for faster signals.

Start Automating Free β†’

Want to automate this strategy? Try auto-Trading free β€” no credit card required.

Stochastic RSI (StochRSI) chart

Overview

What is Stochastic RSI (StochRSI)?

The Stochastic RSI (StochRSI) was developed by Tushar Chande and Stanley Kroll and introduced in their 1994 book "The New Technical Trader." Rather than applying the Stochastic formula to price (as the classic Stochastic Oscillator does), StochRSI applies it to RSI values β€” creating a double-filtered oscillator that is far more sensitive and faster-acting than either indicator alone.

Formula: StochRSI = (RSI βˆ’ Lowest RSI over N periods) Γ· (Highest RSI over N periods βˆ’ Lowest RSI over N periods)

The result oscillates between 0 and 1 (or 0 to 100 when scaled). Values above 0.80 indicate the RSI is near the top of its recent range (overbought); values below 0.20 indicate the RSI is near the bottom (oversold). A smoothed signal line (%D) is typically plotted alongside the raw StochRSI (%K) line, with %D crossovers providing the entry signals β€” exactly as in the standard Stochastic Oscillator.

The advantage of StochRSI over plain RSI is speed and sensitivity: RSI can remain in overbought territory for extended periods during strong trends without generating a buy signal, while StochRSI cycles through overbought and oversold more rapidly, identifying shorter-term entry and exit windows within the broader RSI move. This makes it especially useful for swing traders and intraday traders.

StochRSI is most powerful when used in combination with a trend filter β€” for example, taking only buy signals (StochRSI crossing above 0.20 from below) when price is above the 200 EMA, and only sell signals when price is below. In ranging markets, straightforward overbought/oversold reversals work well. In trending markets, use the crossing of the 0.50 midline as a trend-confirmation signal rather than the extreme levels.

Divergence between price and StochRSI is another high-probability signal: when price makes a new high but StochRSI fails to reach its own recent high, bearish divergence warns of exhaustion. This pattern is particularly reliable on the 4-hour and daily timeframes.

How It Works in auto-Trading

Automate It

auto-Trading computes StochRSI using fully configurable RSI period, Stochastic period, %K smoothing, and %D signal line. Strategy blocks support: %K/%D crossover signals in oversold/overbought zones, midline (0.50) crossovers for trend bias, and divergence detection against price. StochRSI is available on all timeframes and integrates directly with the RSI and Stochastic Oscillator blocks for multi-indicator confluence setups.

Try Free β†’

Strategy Code

Pick a script below, copy it, and use it on your chart.

Pine Script (TradingView)

This is a TradingView Pine Script example for this indicator. Paste it into the TradingView Pine Editor, add it to your chart, and adjust inputs for your market and timeframe.

//@version=6
strategy("Stochastic RSI (StochRSI)", overlay=true)
length = input.int(14, "Length")
smooth = input.int(3, "Smoothing")
k = ta.sma(ta.stoch(close, high, low, length), smooth)

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

ThinkScript (thinkorswim)

This is a thinkorswim ThinkScript example for this indicator. Open thinkorswim, create a custom study, paste the script, and apply it to your chart.

def k = StochasticFull()."FullK";
def d = StochasticFull()."FullD";
def buySignal = k crosses above d and k < 25;
def sellSignal = k crosses below d and k > 75;
AddOrder(OrderType.BUY_AUTO, buySignal, close, 1, Color.GREEN, Color.GREEN, "Stoch Buy");

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

Ready to automate Stochastic RSI (StochRSI)?

Join thousands of traders who use auto-Trading to execute this strategy automatically, 24/7.

Get Started Free β†’

All Strategies & Signals

Continue Learning

Trading Strategies

Trading Signals & Indicators