Backstrap
Divergence

RSI Divergence

Reversal entries when RSI diverges from price — bounded oscillator gives cleaner signals.

What it is

RSI Divergence is a reversal strategy analogous to MACD Divergence, but using the bounded RSI oscillator (0-100) instead of the unbounded MACD histogram. The bounded nature of RSI makes divergences cleaner — you're comparing momentum levels on a fixed scale rather than absolute values.

The classic setup: price makes a new high, but RSI makes a lower high — momentum is fading even as price extends. Symmetrically for bullish divergence at lows.

Like MACD Divergence, this strategy uses confirmed swing detection to avoid look-ahead bias.

How signals fire

Bearish divergence (short entry): confirmed price swing high exceeds the previous swing high, but the corresponding RSI swing high is *lower*. Entry triggers on the bar after both swings are confirmed.

Bullish divergence (long entry): symmetric — price makes a lower low, RSI makes a higher low.

Critical: swing detection uses a look-back window (default 5 bars), and entries fire only at confirmedAt (when the swing is no longer ambiguous to a real-time observer).

Defaults: RSI 14, swing lookback 5, divergence window 30 bars, hold 6 bars.

When it works

Late-cycle exhaustion phases on assets that respect statistical extremes. Daily and 4-hour charts on indices and BTC produce multiple textbook RSI divergence reversals each year.

Markets with cyclical character — those that swing between accumulation and distribution rather than trending indefinitely.

When it fails

Strong persistent trends — RSI can stay above 70 (or below 30) for many bars while price keeps extending. Bearish divergences appear repeatedly without resolving.

Sideways markets where every minor swing produces a "divergence" that isn't structurally meaningful.

Low-volatility regimes where RSI swings are small and the divergence is barely detectable.

Built-in presets

  • Baseline

    Standard RSI 14, 5-bar swing detection, 30-bar divergence window.

  • Long-cycle

    Wider 8-bar swing / 50-bar window — for higher timeframes and longer cycles.

  • Short-cycle

    Tighter 3-bar swing / 20-bar window — for shorter swings on lower timeframes.

Recommended indicator filters

  • ADX ≤ 25 — divergences work best when trend strength is moderating.
  • RSI extreme zone — only take divergences where RSI is also at OB/OS at the second swing.

Common pitfalls

  • Using a swing lookback that's too small — every wiggle becomes a 'swing'.
  • Trading bearish divergences in raging bull markets — they can persist for many bars.
  • Confusing RSI's '70/30' levels with hard reversal triggers — they are heuristics that miss in trends.
  • Cherry-picking historic charts where divergences worked — survivorship bias is rampant in divergence literature.

Related indicators

Related strategies

Related reading

Try RSI Divergence in the backtester

Open the engine, pick RSI Divergence, choose a preset, and run it against synthetic or your own historical data. Tune parameters, add filters, and see how it behaves out-of-sample with walk-forward and Monte Carlo analysis.

Open the backtester →

Educational note: This page explains how RSI Divergence fires and the market conditions it suits. It does not constitute investment advice. Backtested results are hypothetical simulations on past data; they cannot guarantee future outcomes. See the full disclaimer.

Last updated: 2026-05-08