indicators

RSI Divergence: How to Spot Bullish, Bearish and Hidden Divergence (With a Nifty Example)

RSI divergence is when price and the Relative Strength Index (RSI) move in opposite directions. Price makes a new high or low, but RSI does not confirm it. This shows the momentum behind the move is fading, which often comes before a reversal or a pause.

There are four types: regular bullish, regular bearish, hidden bullish and hidden bearish. Regular divergence warns that a trend may reverse. Hidden divergence suggests the trend is likely to continue.

Divergence is a warning sign, not a buy or sell button. This guide shows how to spot each type, confirm it, and check whether it actually worked on Nifty before you put money on it.

Think your divergence setup works? Prove it on past data first.Sign up on SurendraAlgo and backtest your RSI rule on historical Nifty data before it touches real money.

What Is RSI? A Quick Refresher

RSI is a momentum indicator created by J. Welles Wilder. It measures how fast and how strongly price has moved over a set number of candles, usually 14.

RSI moves between 0 and 100:

  • A reading above 70 is usually treated as overbought.

  • A reading below 30 is usually treated as oversold.

  • The 50 level acts as the line between bullish and bearish momentum.

Think of RSI as a speedometer and price as the road. A car can keep climbing a hill while it slows down. Divergence is when you notice the speedometer dropping even though the car is still climbing.

This early warning is a big reason RSI ranks among the best indicators for intraday trading. On SurendraAlgo, RSI is one of 20+ indicators you can use to build, test and automate a trading rule without writing code.

The 4 Types of RSI Divergence

Type

Seen in

Price

RSI

What it suggests

Regular bullish (positive divergence)

Downtrend

Lower low

Higher low

Selling is weakening, a bounce may follow

Regular bearish (negative divergence)

Uptrend

Higher high

Lower high

Buying is weakening, a fall may follow

Hidden bullish

Pullback in an uptrend

Higher low

Lower low

The uptrend is likely to continue

Hidden bearish

Bounce in a downtrend

Lower high

Higher high

The downtrend is likely to continue

Here is an easy way to remember the difference. In regular divergence, price makes the more extreme point. In hidden divergence, RSI makes the more extreme point.

Regular Bullish Divergence (Positive Divergence)

Price makes a lower low, but RSI makes a higher low. Sellers pushed price lower, but with less force than before.

It usually appears near the end of a downtrend and can come before a bounce.

Regular Bearish Divergence (Negative Divergence)

Price makes a higher high, but RSI makes a lower high. Buyers are still pushing price up, but each push is weaker.

Traders often use it as a cue to book profits on long trades or to prepare for a fall.

Hidden Bullish Divergence

Price makes a higher low, but RSI makes a lower low. This shows up during a pullback in an uptrend.

Price held above its old low even though momentum dipped deeper. That is a sign buyers are still in control.

Hidden Bearish Divergence

Price makes a lower high, but RSI makes a higher high. It forms during a bounce inside a downtrend.

Price failed to reach its old high even though momentum rose. That is a sign sellers still have the upper hand.

How to Spot RSI Divergence in 5 Steps

  1. Add RSI (14) below your price chart. For intraday trading, start with a 15-minute chart. Very short charts like 1 or 3 minutes show divergence every few candles, and most of it means little. This guide on the best time frame for intraday trading can help you pick one.

  2. Mark two clear swing points on price. Use two swing lows for bullish divergence and two swing highs for bearish divergence. A common rule of thumb is to keep them at least 5 candles apart and within about 50 to 60 candles.

  3. Read RSI on the same two candles. Do not use the nearest RSI peak. Use the RSI value on the exact candles where price made its swing.

  4. Compare the direction. Draw one line connecting the two price points and another connecting the two RSI points. If the lines slope in opposite directions, you have divergence.

  5. Check where RSI is. Bullish divergence carries more weight when the first RSI low is below 30. Bearish divergence carries more weight when the first RSI high is above 70.

RSI Divergence Example on Nifty

The numbers below are illustrative. They show how to read the setup on a 15-minute Nifty chart.

Bullish divergence:

  • Nifty falls to 24,800 and RSI drops to 22, deep in oversold territory.

  • Price bounces to 24,950.

  • Nifty falls again to 24,720, a lower low, but this time RSI only drops to 29, a higher low.

  • Price made a new low with weaker selling behind it, which is regular bullish divergence.

What a trader might do next:

  • A cautious trader waits for a 15-minute close above 24,950, the bounce high between the two lows.

  • A faster trader enters when RSI crosses back above 30 and accepts more false signals in return.

  • In both cases, the stop loss sits just below 24,720, because a break of that low means the divergence has failed.

Bearish divergence:

  • Nifty rises to 25,600 with RSI at 74.

  • Price dips to 25,480 and then climbs to 25,660, a higher high.

  • RSI only reaches 63 on the second high, a lower high.

  • This is not an instant short signal, but it tells you the rally is losing strength, so it is a good time to tighten stops on long trades and watch for a break below 25,480.

How to Confirm RSI Divergence Before You Trade

In a strong trend, divergence can show up two or three times before price actually turns. Every early entry can cost you, so wait for at least one confirmation:

  • A close above the swing high between the two lows confirms a bullish divergence, and a close below the swing low between the two highs confirms a bearish one.

  • RSI crossing back above 30 (bullish) or below 70 (bearish) shows momentum is really turning, and some traders wait for a cross of 50 for stronger proof.

  • When ADX is above 25 and rising, the trend is strong, so treat regular divergence against that trend with extra caution.

  • A close back above a short EMA, such as the 20 EMA, adds weight to a bullish divergence.

  • Divergence that forms near support, resistance or the outer Bollinger Bands means more than one that forms in the middle of a range.

Checking price, RSI and confirmation on every candle gets tiring.Create your SurendraAlgo account and let your divergence rules place trades automatically through any of 65+ supported brokers.

A Simple RSI Divergence Trading Strategy

Use this as a starting point to test, not as a finished system.

Bullish setup

Bearish setup

Setup

Regular bullish divergence, first RSI low below 30

Regular bearish divergence, first RSI high above 70

Entry

RSI crosses above 30, or price closes above the swing high

RSI crosses below 70, or price closes below the swing low

Stop loss

Just below the second price low

Just above the second price high

Exit

RSI reaches 60 to 70, or price hits the previous swing high

RSI falls to 30 to 40, or price hits the previous swing low

Options idea

ATM call buy

ATM put buy

If the move keeps running, you can trail your stop with SuperTrend instead of exiting at a fixed RSI level.

Hidden divergence works better as a re-entry tool. In an uptrend, a hidden bullish divergence with RSI holding in the 40 to 50 zone can mark the end of a pullback. In a downtrend, look for hidden bearish divergence with RSI stalling around 50 to 60.

Common RSI Divergence Mistakes

  • Trading against a strong trend is the most common error, because RSI can stay overbought or oversold for hours while divergence keeps printing.

  • Reading RSI on the wrong candle creates false divergence, so always use the RSI value on the exact swing candles.

  • Mixing up regular and hidden divergence can make you trade a reversal when the chart is pointing to continuation.

  • Using 1-minute or 3-minute charts gives you divergence every few candles, and most of it is noise.

  • Holding on after price breaks the second swing low or high turns a small loss into a big one, because the setup is already invalid.

  • Trading divergence on event days like RBI policy or the Union Budget is risky, since price gaps can jump right past your levels.

  • Trusting a setup because it looked right on a few charts is not enough, so test it on past data and practise on paper trading websites before going live.

How to Backtest RSI Divergence Without Coding

Spotting divergence by eye is subjective. Two traders can look at the same chart and mark different swings. This is where algo trading software helps, because it applies the same rule on every candle, without bias.

Most no-code builders do not have a single "divergence" button. You can still build a simple version using the Offset setting, which reads an indicator's value from a set number of candles ago.

Here is a bullish divergence rule for Nifty on a 15-minute chart:

#

Left side

Comparison

Right side

What it checks

1

CANDLE (Low, 15m, offset 0)

Less than

CANDLE (Low, 15m, offset 10)

Price is lower than 10 candles ago

2

RSI (14, 15m, offset 0)

Greater than

RSI (14, 15m, offset 10)

RSI is higher than 10 candles ago

3

RSI (14, 15m)

Crosses above

30

Momentum is turning up

rsi divergence
RSI divergence rule in SurendraAlgo Signals AI comparing candle low and RSI with values from 10 candles ago

All three conditions must be true on the same candle. Together, they capture the core of bullish divergence: a lower price, a stronger RSI and momentum turning up.

For a bearish version, flip the rule. Use candle high greater than 10 candles ago, RSI lower than 10 candles ago, and RSI crossing below 70.

This rule compares the current candle with one fixed candle in the past, not the exact swing low. So test a few lookbacks, such as 5, 10 and 20 candles, and see which one fits Nifty best.

To build and test it on SurendraAlgo:

  1. Open Signals AI, choose Nifty as the instrument and set the timeframe to 15 minutes.

  2. Add the three conditions under Entry Conditions, joined with AND.

  3. Add an exit condition, such as RSI crossing above 60.

  4. Check the signals on the chart to make sure they appear where you expect.

  5. Go to Backtest Results, connect a strategy such as an ATM call buy with a stop loss, and run the backtest.

  6. Review the number of trades, win rate, max drawdown and year-wise returns. This guide on how to backtest indicator strategies explains what each metric tells you.

rsi divergence

Prefer typing to clicking? You can describe the rule in plain English to the Signals AI agent, and it builds the conditions for you.

Once the backtest looks reasonable, run the rule in forward test for a few weeks. Markets change, and virtual trading in live conditions shows how the rule behaves today.

Not ready to risk real money on divergence yet?Sign up on SurendraAlgo and forward test your RSI rule with virtual trades in live market conditions.

Turn Divergence Into a Rule You Can Trust

RSI divergence is useful because it shows momentum fading before price turns. On its own, though, it is only a warning.

The edge comes from turning it into a clear rule: which type you trade, on which timeframe, what confirms the entry, where the stop sits and when you exit. Then check that rule across trending and sideways markets, and forward test it before going live.

SurendraAlgo helps you turn a divergence you spotted on a chart into a strategy you can backtest, paper trade and automate, so every decision rests on data.

Join us as we simplify algo trading in India.

FAQs

Is RSI divergence a reliable signal?

It is a useful early warning, but it is not reliable on its own. Divergence can repeat several times in a strong trend before price turns. It works better with a confirmation, such as a price break or an RSI cross, and after you have tested it on past data.

What is the best timeframe for RSI divergence?

For intraday trading, 15-minute and 1-hour charts give cleaner divergences than 1-minute or 5-minute charts. Swing traders often use daily charts. Higher timeframes give fewer signals, but each one tends to matter more.

What is the best RSI setting for divergence?

RSI 14 is the standard setting and works well for most traders. Some intraday traders use RSI 9 or 10 for faster signals, which also brings more noise. Whatever you choose, keep it the same across all your tests.

What is the difference between regular and hidden divergence?

Regular divergence compares the extremes of a move and warns that the trend may turn. Hidden divergence compares the pullbacks inside a trend and suggests the trend will resume. Most traders use regular divergence for reversal trades and hidden divergence for re-entries.

What is positive and negative divergence in RSI?

Positive divergence is another name for bullish divergence, where price makes a lower low while RSI makes a higher low. Negative divergence is bearish divergence, where price makes a higher high while RSI makes a lower high.

Is RSI divergence better than MACD divergence?

Neither is better in every market. RSI reacts faster and has fixed 0 to 100 levels, so overbought and oversold zones are easy to read. MACD is smoother and slower, so it tends to give fewer but later signals. Some traders wait for both to agree.

Can you automate an RSI divergence strategy?

Yes. You can turn divergence into rules using RSI and candle values from earlier candles, then connect those rules to a trading strategy. SurendraAlgo lets you backtest, forward test and run such a rule live through your broker without coding.

ESC
Type to search...
↑↓ Navigate↡ Openesc Close