Free trial
Menu
Strategy guide

Spot and Trade RSI Divergence

An RSI divergence strategy looks for moments when the price and the RSI disagree. If the price makes a lower low but the RSI makes a higher low, selling pressure is fading even as the price falls. Traders read this as an early sign that a move may be ending, and wait for the price to confirm before entering.

QuantPower Research · Updated 6 Nov 2026 · 4 min read

This guide explains the types of RSI divergence, rules you can test, a worked example on Nifty, the confirmation that matters and how to define divergence clearly enough to automate.

At a glance

RSI divergence strategy
TypeReversal
IndicatorRSI(14)
MarketsNifty and Bank Nifty futures, liquid stocks, MCX futures
Timeframes15-minute to daily
Long setupPrice makes a lower low, RSI makes a higher low, first low below RSI 30
Short setupPrice makes a higher high, RSI makes a lower high, first high above RSI 70
EntryPrice breaks the swing between the two lows (or highs)
StopBeyond the second low (or high)
TargetThe previous swing, or 2 times the risk

Types of RSI divergence

TypePriceRSIWhat it suggests
Regular bullishLower lowHigher lowA downtrend is losing strength
Regular bearishHigher highLower highAn uptrend is losing strength
Hidden bullishHigher lowLower lowAn uptrend is likely to continue
Hidden bearishLower highHigher highA downtrend is likely to continue

Regular divergence is used to time reversals. Hidden divergence is used to join a trend on a pullback. This guide focuses on regular divergence. For how RSI itself is calculated, see the RSI indicator guide.

The rules

Bullish divergence

  1. First low: the price makes a swing low with RSI(14) below 30.
  2. Second low: within 5 to 30 candles, the price makes a lower low while RSI makes a higher low.
  3. Trigger: the price closes above the highest point between the two lows.
  4. Stop: below the second low.
  5. Target: half at 2 times the risk, the rest on a trailing stop.

Bearish divergence

The mirror image, with the first high above RSI 70 and a trigger below the lowest point between the two highs.

A worked example

On a 15-minute Nifty futures chart, the price falls to a swing low of 24,880 with RSI at 24. It bounces to 24,960, then falls to a new low of 24,850. RSI at the second low is 33: higher than at the first low, although the price is lower.

  • Trigger: a close above 24,960, the high between the two lows
  • Entry: 24,965
  • Stop: 24,840, below the second low, a risk of 125 points
  • Target: 2 times the risk, 25,215

One lot of 65 risks ₹8,125 for a target of ₹16,250. These numbers illustrate the rules, not a result.

RSI(14) on simulated prices: readings below 30 and above 70 mark stretched moves

Why confirmation matters

A divergence can form, then form again, while the price keeps falling. Strong trends often show two or three divergences before they turn. Waiting for the price to break the swing between the two lows filters out many of these. The trade enters later and gives up some of the move, but loses less often.

Defining divergence for automation

Divergence is easy to see on a chart afterwards and hard to define in rules. To test or automate it:

  • Define a swing low: a candle whose low is lower than the lows of 3 candles on each side. This needs 3 candles after the low before it is confirmed.
  • Compare the last two swing lows within a set window, such as 5 to 30 candles apart.
  • Check RSI at those two candles.

The 3 candles after the swing are a delay that a backtest must respect. A test that "knows" a low is a swing low at the moment it forms has look-ahead bias.

When the strategy works, and when it does not

Works best when:

  • The price reaches a known level, such as prior support and resistance strategy, with a divergence.
  • The move has run a long way and volatility is rising into the second low.

Struggles when:

  • A strong trend keeps going. Divergences can stack up while the price trends.
  • News drives the move. Divergence reads momentum, not fundamentals.
  • The swings are too close together, which makes the RSI readings almost the same.

Automating an RSI divergence strategy

In QuantPower's strategy builder, set the swing rule and the RSI comparison as conditions, the trigger as a stop order above the swing high, and the stop below the second low. Add a market alert if you want to review each divergence before the order goes in. Test it in paper trading first.

Backtesting an RSI divergence strategy

  • Test the swing definition (2, 3 or 5 candles each side) and the window between swings.
  • Compare entries on the trigger with entries at the second low. The difference shows what confirmation is worth.
  • Count how often divergences failed in strong trends.

See RSI mean reversion for a simpler RSI strategy to compare against.

Common mistakes

  • Entering on the divergence alone. Without a trigger, the strategy buys into falling markets.
  • Seeing divergences that are not there. Fix the swing rule and stick to it.
  • Ignoring the timeframe. A divergence on a 5-minute chart means little against a daily downtrend.

Frequently asked questions

What is RSI divergence?

A difference between the direction of the price and the direction of the RSI, such as a lower low in price with a higher low in RSI.

Is RSI divergence reliable?

It is a warning that momentum is fading, not a signal on its own. Use a price trigger and a stop.

What is the difference between regular and hidden divergence?

Regular divergence points to a reversal. Hidden divergence points to a trend continuing after a pullback.

Which RSI setting is best for divergence?

RSI(14) is the standard. Shorter settings give more divergences and more false ones.

Sources

  • Wilder, J. W. (1978). New Concepts in Technical Trading Systems. Trend Research
  • Murphy, J. J. (1999). Technical Analysis of the Financial Markets. New York Institute of Finance
The example on this page is hypothetical and for illustration only. Backtested or simulated results do not guarantee future results. Trading involves substantial risk.