RSI Divergence Indicator Explained: Spotting Reversals

RSI Divergence Indicator Explained: Spotting Reversals

how to use RSI divergence to spot reversals

Key Takeaways

  • RSI divergence means price and momentum disagree. A lower low in price with a higher low in RSI is bullish, and a higher high in price with a lower high in RSI is bearish.
  • Regular divergence warns of reversals; hidden divergence points to continuation. In strong trends, hidden divergence that trades with the trend is usually the better signal.
  • Wait for confirmation before trading. A close beyond the swing point between the two extremes, with the stop beyond the divergence high or low, avoids many failed signals.
  • Higher timeframes give more meaningful signals. H1 to H4 divergences tend to hold up better than M5 or M15, and any EA using divergence should be backtested across different conditions.

RSI divergence happens when price and the Relative Strength Index disagree. If price makes a lower low but RSI makes a higher low, that is bullish divergence, a sign that selling pressure is fading. If price makes a higher high but RSI makes a lower high, that is bearish divergence, a sign that buying pressure is fading.

Divergence is a warning, not an entry signal on its own. Momentum can fade for a long time while a trend keeps going, so most traders wait for price to confirm the turn before acting. This guide covers the four types of RSI divergence, how to spot them in MT4 and MT5, a worked trade example with exact levels, and how divergence works inside an Expert Advisor.

What RSI Measures

The Relative Strength Index was introduced by J. Welles Wilder in 1978. It compares the size of recent gains with the size of recent losses and plots the result on a scale from 0 to 100.

  • Formula. RSI = 100 − 100 ÷ (1 + RS), where RS is the average gain divided by the average loss over the lookback period.
  • Standard setting. 14 periods.
  • Levels. Readings above 70 are usually called overbought, and readings below 30 oversold.

Overbought does not mean price must fall. In a strong uptrend, RSI can stay above 70 for a long time while price keeps rising. Divergence is useful because it looks at whether each new price extreme comes with matching momentum, not just at the RSI level.

The Four Types of RSI Divergence

Type Price RSI What it suggests
Regular bullish Lower low Higher low A downtrend may be losing strength and could reverse up
Regular bearish Higher high Lower high An uptrend may be losing strength and could reverse down
Hidden bullish Higher low Lower low A pullback in an uptrend may be ending, so the uptrend could continue
Hidden bearish Lower high Higher high A rally in a downtrend may be ending, so the downtrend could continue

An easy way to remember the difference: regular divergence compares the extremes of the trend (the highs in an uptrend, the lows in a downtrend) and points to a reversal. Hidden divergence compares the pullbacks (the lows in an uptrend, the highs in a downtrend) and points to continuation.

Regular bullish divergence

Price falls to a new low, but RSI does not fall as far as it did at the previous low. Sellers pushed price lower, but with less force. It is most meaningful near a support level or after a long decline.

Regular bearish divergence

Price rises to a new high, but RSI peaks lower than it did at the previous high. Buyers pushed price higher, but with less force. It is most meaningful near resistance or after an extended rally.

Hidden divergence

Hidden divergence is often more useful in a trending market, because it trades with the trend instead of against it. Hidden bullish divergence during an uptrend suggests the pullback has stretched momentum further than price, which often happens just before the trend resumes.

How to Spot RSI Divergence in MT4 and MT5

  1. Add RSI. In MT4 or MT5, go to Insert, then Indicators, then Oscillators, then Relative Strength Index. Keep the period at 14 and add levels at 30 and 70 if they are not already shown.
  2. Mark two clear swing points on price. Use obvious swing highs or lows, not every small wiggle.
  3. Find the matching RSI points. Look at RSI directly below each price swing. They should line up with the same candles, or within a candle or two.
  4. Compare the direction. If price and RSI point in opposite directions between the two swings, you have divergence.
  5. Check the context. Divergence near support, resistance or an RSI extreme carries more weight than divergence in the middle of a range.

Two rules keep this objective. Compare highs with highs and lows with lows, never a high with a low. And use only completed swings, since the latest candle can still change both price and RSI.

Which Timeframes Work Best

Timeframe How divergence behaves Best use
M5 to M15 Frequent signals, many fail Short term trades with strict confirmation
H1 to H4 Fewer signals, more meaningful Most swing and intraday traders
Daily and above Rare, often marks larger turns Context and longer term trades

Divergence on a lower timeframe often fails when it goes against the trend on a higher timeframe. Before acting on an M15 signal, check what H1 or H4 is doing.

Worked Example: Trading Bearish RSI Divergence

Say EUR/USD on the H4 chart has been rising.

  1. The setup. Price makes a high at 1.0950 with RSI at 74. A few days later, price pushes to a higher high at 1.0980, but RSI only reaches 66. Price is higher, momentum is lower: regular bearish divergence.
  2. Wait for confirmation. Between the two highs, price pulled back to a swing low at 1.0920. The trade only triggers if an H4 candle closes below 1.0920, showing that buyers have lost control.
  3. Entry. A candle closes at 1.0915. You sell at 1.0915.
  4. Stop loss. Above the divergence high, with a small buffer for spread, at 1.0985. That is 70 pips of risk.
  5. Take profit. At twice the risk, 140 pips below entry, at 1.0775, or at the next clear support level if it comes first.

If you risk 1% of a $10,000 account, that is $100 over 70 pips, or about $1.43 per pip, which is roughly 0.14 lots on EUR/USD.

If price never closes below 1.0920 and instead makes a third, even higher high, the divergence has failed and there is no trade. Waiting for confirmation means missing some moves, but it avoids many of the trades where momentum faded and the trend carried on anyway. Our guide to setting stop loss and take profit in MT4 covers placing these levels in the platform.

Other ways to confirm a divergence

  • A break of structure. Price closes beyond the swing point between the two extremes, as in the example above.
  • RSI crossing back. RSI moves back below 70 after bearish divergence, or above 30 after bullish divergence.
  • A reversal candle. An engulfing candle or pin bar at a key level. Our guide to price action trading explains these patterns.

Common RSI Divergence Mistakes

  • Trading divergence alone. Without confirmation, many divergences fail as the trend simply continues.
  • Fighting a strong trend. Regular divergence against a powerful trend often appears two or three times before any real reversal, if one comes at all. In trends, hidden divergence is usually the better signal.
  • Comparing the wrong points. Matching a price high with an RSI low, or using swings that do not line up in time.
  • Using unfinished candles. The last candle can still change, so a divergence that looks clear mid candle may disappear by the close.
  • Ignoring the bigger picture. A lower timeframe divergence against the higher timeframe trend is a weak signal.
  • Changing the RSI period to make signals appear. Pick a period, usually 14, and test it, rather than adjusting it until a chart looks right.

RSI divergence also tends to work better in some market conditions than others. Our guide to trending and ranging markets explains how to tell which one you are in.

RSI Divergence in Expert Advisors

Divergence is harder to automate than a simple indicator crossover, because the EA must first decide what counts as a swing high or low. Most divergence EAs follow the same steps:

  1. Find swing points. Usually a high or low that is higher or lower than a set number of candles on each side.
  2. Read RSI at those points. In MQL5, an EA gets RSI values through the iRSI function in the MQL5 documentation, which returns a handle to the indicator data.
  3. Compare the two swings. If price and RSI move in opposite directions, a divergence is flagged.
  4. Wait for confirmation. Such as a close beyond the middle swing point, or RSI crossing back through 30 or 70.
  5. Place the trade with fixed risk. The stop goes beyond the divergence extreme, and the lot size is set from the account risk.

Swing detection has a built in delay. A swing high can only be confirmed after some candles have closed below it, so automated divergence signals always arrive a little after the turn. Backtest any divergence EA over several years and different market conditions before trading it live. Our guide on how to backtest your expert advisor shows how.

XAUBOT and RSI Divergence

XAUBOT, our own platform, includes an RSI Divergence and PAT strategy among its ten fixed strategies. It looks for weakening momentum with RSI divergence and uses price action to confirm the signal, following the same idea as this guide. You can adjust its settings and risk, add stop loss, take profit and daily loss limits, and download it as an Expert Advisor for MT4 or MT5.

You can see the strategy options on our forex trading bot page and test any setup free for 15 days on a demo account before trading live.

RSI Divergence Questions

Is RSI divergence reliable?

It is a useful warning, but not reliable on its own. Momentum can fade for a long time before price turns. Divergence works best with confirmation, near key levels and in line with the higher timeframe.

What RSI setting is best for divergence?

The standard 14 period setting is the most widely used. Shorter periods give more signals but more false ones, and longer periods give fewer but slower signals.

Which is better, regular or hidden divergence?

They do different jobs. Regular divergence warns of a possible reversal, while hidden divergence suggests a trend may continue. In strong trends, hidden divergence is usually more useful.

Can RSI divergence be used on gold and crypto?

Yes. It works the same way on any market with enough price history, though gold and crypto are more volatile, so stops usually need to be wider.

Final Word

RSI divergence shows when price and momentum stop moving together. Use it as an early warning, wait for price to confirm, and place your stop where the divergence would be proven wrong.

Trading forex and CFDs with leverage carries a high risk of loss. Only trade with money you can afford to lose.

Further Reading

Leave a Reply

Your email address will not be published. Required fields are marked *

Share Post

Contents