Classic oversold bounce
A mean-reversion long entry for ranging markets, triggered when momentum turns back up from oversold.
Relative Strength Index
A momentum oscillator that measures the speed and magnitude of recent price changes on a bounded 0–100 scale.
RSI is a momentum oscillator that measures the speed and magnitude of recent price changes on a 0–100 scale. Developed by J. Welles Wilder, it signals overbought above 70, oversold below 30, and weakening momentum through divergences with price. Default lookback: 14 bars.
The Relative Strength Index (RSI), developed by J. Welles Wilder, compares the magnitude of recent gains to recent losses over a chosen lookback (typically 14 bars). Readings above 70 are conventionally "overbought," below 30 "oversold" — but the real power of RSI lies in how it behaves inside those zones and in divergence against price.
In strong trends, oversold and overbought levels shift: an uptrend may respect RSI 40 as support and push well above 70 without reversing. Treat RSI as a relative measure of momentum rather than a mean-reversion trigger on its own.
Entry ideas
A mean-reversion long entry for ranging markets, triggered when momentum turns back up from oversold.
A trend-aligned long entry that buys pullbacks to the mid-range of RSI during confirmed uptrends.
A reversal-anticipation entry that spots waning downside momentum before the price turns.
Exit ideas
A momentum-peak exit that locks gains when the oscillator signals stretched upside.
An early exit that cuts trades losing steam before they reach overbought.
A proactive exit triggered when rising price fails to produce rising momentum.
Utilities
A bias filter that keeps trades aligned with prevailing momentum, improving any directional system.
A regime detector that flags ranging markets so trend systems can stand aside.
| Parameter | Default | When to adjust |
|---|---|---|
| Lookback period | 14 | Wilder's original setting. Drop to 9 for faster signals on intraday charts; raise to 21 for less noise on daily charts. |
| Source | Close | Most common. Some traders use HLC3 or HL2 for smoother readings on volatile assets. |
| Overbought threshold | 70 | Raise to 80 in strong uptrends to filter trend-continuation false sells. |
| Oversold threshold | 30 | Drop to 20 in strong downtrends to filter trend-continuation false buys. |
| Smoothing method | Wilder (RMA) | Pine Script's ta.rsi() uses Wilder's smoothing by default. Custom EMA-based RSIs produce different values. |
//@version=5
indicator("RSI Example", overlay=false)
length = input.int(14, title="Length", minval=2)
src = input.source(close, title="Source")
rsiValue = ta.rsi(src, length)
plot(rsiValue, title="RSI", color=color.purple, linewidth=2)
hline(70, "Overbought", color=color.red, linestyle=hline.style_dashed)
hline(30, "Oversold", color=color.green, linestyle=hline.style_dashed)TradingView's built-in ta.rsi() handles Wilder's smoothing for you, so you don't need to compute average gains and losses by hand. Wire length and src to inputs so users can tune both without editing the script. Plot horizontal lines at 70 and 30 to mark the conventional thresholds — a small detail that makes the chart instantly readable.
RSI compares the average size of up-bars to the average size of down-bars over the lookback period, then maps that ratio to a 0–100 scale.
RSI works in ranging markets where price oscillates around a mean — it's mean-reversion-friendly by design. It fails reliably in three regimes.
Strong directional trends are the most common failure: in a sustained breakout, RSI can stay above 70 for days. Traders selling at 70 in a runaway market get steamrolled. Wilder himself noted that "overbought" is a statistical state, not a reversal signal.
Low-liquidity instruments produce erratic candles, which inflate RSI's volatility and generate false oversold/overbought readings. Small-cap stocks and exotic crypto pairs often print signals that look perfect on the chart and lose money in execution.
News-driven gaps push RSI below 30 instantly, but the bounce often doesn't come until much lower. RSI doesn't model fundamental shifts, so its signals during news events are unreliable.
Pair RSI with a trend filter (such as 200 EMA direction or a higher-timeframe MACD) to gate when overbought/oversold signals are trade-worthy.
| Indicator | When to prefer |
|---|---|
| Stochastic | Stochastic reacts faster than RSI; better for very short timeframes (1–5 min) and choppy intraday markets. |
| MACD | MACD measures trend direction and strength; better for swing trades where direction matters more than mean-reversion. |
| Bollinger Bands | Bollinger Bands give the volatility context (how stretched is this move?) that RSI alone can't provide. |
Most day traders stick with the default 14, sometimes dropping to 9 for faster signals on 1–5 min charts. Going below 9 produces too many false signals to be useful. If you need faster responsiveness without smaller periods, switch to the Stochastic Oscillator instead — it is designed for short-timeframe sensitivity.
Yes — RSI works on any asset with continuous price data. Crypto markets are 24/7 and highly volatile, which makes RSI signals plentiful but also raises the false-signal rate. Pair with a trend filter like a 50 or 200 EMA on the same timeframe to gate signals to the prevailing direction.
RSI assumes price will mean-revert. In strong directional moves (sustained trends, breakouts, news shocks), price doesn't mean-revert and RSI's overbought/oversold thresholds become misleading. Identify the trend regime first; in trending markets, use RSI for pullback entries, not reversal entries.
Most successful RSI strategies combine it with at least one filter: trend direction (e.g., 200 EMA), volatility regime (e.g., ATR), or volume confirmation. Standalone RSI gets shaken in trending markets — it shines as a momentum confirmation layer alongside a directional indicator, not as the sole entry trigger.
Continue exploring
Stochastic Oscillator
A bounded 0–100 oscillator that measures where the close sits relative to the high-low range over a chosen lookback — paired with a smoothed signal line for crossover triggers.
View StochTrendMoving Average Convergence Divergence
A trend-momentum indicator built from the difference between two EMAs, plus a signal line and histogram that visualise momentum shifts.
View MACDVolatilityBollinger Bands
A volatility envelope built from a moving average and ±2 standard deviations, expanding and contracting as volatility changes.
View BBAbout these ideas
Each entry, exit, and utility rule in the Playbook is hand-picked from established trading literature, validated against historical backtests, and reviewed by the PineWiz team. We add new ideas as we encounter them and refresh existing ones when market behavior or default settings shift. Last review: .
Educational content. Not financial advice.