Divergence Trading: How to Spot Regular and Hidden Divergence

Intermediate8 min read
Aerial view of two roads splitting apart through a forest

What Is Divergence in Trading?

Divergence is when price and a momentum indicator disagree. Price makes a new high or low, but an indicator such as RSI or MACD does not. It shows the latest push had less force than the one before. Traders treat it as an early warning that a move may be weakening, not as a trade signal by itself.

A momentum indicator measures how fast price is moving, not where it is. The guides to the RSI indicator and the MACD indicator each cover divergence in a paragraph.

Regular vs Hidden Divergence: The Four Types

Divergence is measured between two swings. A swing low is a dip where price turned up, and a swing high is a peak where price turned down. Compare two swing lows for bullish divergence, and two swing highs for bearish divergence.

USD/JPY 4-hour candlestick chart with an RSI 14 panel: a line joins two rising swing lows on price while the RSI line at the same candles slopes down, above a rising 50 EMA
Hidden bullish divergence on real USD/JPY 4-hour candles. Price made a higher low while RSI 14 made a lower low at the same two candles, a pullback that reset momentum without breaking the uptrend.
  • Regular bullish divergence. Price makes a lower low. The indicator makes a higher low. Sellers reached a new low with less force, so the downtrend may be losing strength.
  • Regular bearish divergence. Price makes a higher high. The indicator makes a lower high. Buyers reached a new high with less force, so the uptrend may be tiring.
  • Hidden bullish divergence. Price makes a higher low. The indicator makes a lower low. It appears during a pullback and suggests the uptrend may continue.
  • Hidden bearish divergence. Price makes a lower high. The indicator makes a higher high. It appears during a rally and suggests the downtrend may continue.

A quick check: if price makes the new extreme, it is regular. If the indicator does, it is hidden.

Regular divergence hints at a possible reversal, or at least a pause. Losing momentum means the trend is slowing, like a car easing off the accelerator. The car is still moving forward. Hidden divergence points the other way: a pullback has reset momentum without breaking the trend, so traders look to rejoin it. Both fail, and hidden divergence fails most often when the trend is already old.

Which Indicator Is Best for Divergence?

Any oscillator, meaning an indicator that swings back and forth around a middle value, can show divergence. Three are common:

  • RSI. The Relative Strength Index, usually set to 14 periods, moves between 0 and 100. Its peaks and dips are easy to compare, which makes RSI divergence the usual starting point.
  • MACD histogram. The bars show the gap between the MACD line and its signal line, with standard settings of 12, 26 and 9. For MACD divergence, compare the height of one hump of bars with the next. It is smoother than RSI, so signals are fewer and later. MetaTrader’s built-in MACD draws the MACD line itself as bars; compare its humps the same way.
  • Stochastic. The stochastic oscillator reacts fast, so it shows the most divergences and the most false ones.

Pick one and stay with it. If you check three, one will nearly always show a divergence, and you will pick the one that agrees with what you already wanted. All three come with MetaTrader 4 and 5, so there is no need to pay for a special tool. If you are still choosing a platform, see the independent broker comparison.

On TradingView, the browser-based charting platform, a script can mark the swings for you. Try the free RSI divergence scripts or the wider set of divergence indicators in our Pine Script Library. Some of them repaint, so check that a marked divergence is still there once the second swing is confirmed.

How to Spot Divergence Correctly

  • Step 1: start with price, not the indicator. Find two clear swing highs or two clear swing lows. If you have to squint to see them, there is nothing to compare.
  • Step 2: join the two price swings with a line and note its slope.
  • Step 3: drop straight down to the indicator. Mark its reading at the same two candles, or within a candle or two of them. Do not pick a different peak because it looks better. Same points in time, always.
  • Step 4: join the two indicator points. If the two lines slope in opposite directions, you have divergence.
  • Step 5: check that the second swing is finished. A swing high is only confirmed once later candles close below it. Until then the indicator can still rise and the divergence can vanish.
GBP/USD 4-hour chart with an RSI 14 panel: a rising line joins two swing highs on price, a falling line joins RSI at the same candles, and price later closes below the low between them
Regular bearish divergence on real GBP/USD 4-hour candles. The line on price rises to a higher high; the line on RSI 14, drawn at the same two candles, falls. The trigger came later, when price closed below the swing low between the peaks.

How to Trade Divergence: Wait for a Trigger

Divergence tells you momentum has faded. It does not tell you price has turned. Selling the moment you see bearish divergence means selling into an uptrend that is still making higher highs. So wait for price itself to confirm. Common triggers are:

  • A trend line break. Draw a line under the lows of the rally, or over the highs of the sell-off, and wait for a candle to close beyond it. See trend lines and channels.
  • A break of structure. For bearish divergence, wait for price to close below the most recent swing low.
  • A candlestick signal at a level. Look for one of the rejection or engulfing candlestick patterns where the second swing meets a support or resistance zone. Divergence in the middle of nowhere is much weaker.

Where to Put the Stop and the Target

The stop-loss (the order that closes a losing trade) goes beyond the second swing, the one that completed the divergence. If price makes a new extreme, the idea is wrong. For regular divergence, a sensible first target is the swing point between the two highs or lows. For hidden divergence, it is the trend’s last extreme.

Here is an example with made-up prices. EUR/USD on the 4-hour chart makes a high at 1.1000 with RSI at 78. It dips to 1.0940, then makes a higher high at 1.1030 with RSI at only 66. That is regular bearish divergence. You wait until price closes below a small trend line at 1.0995, and you sell there. The stop goes at 1.1040, 10 pips above the high, so the risk is 45 pips. The target is the dip at 1.0940, a gain of 55 pips. (A pip is the smallest standard price step, 0.0001 on most pairs.)

On a $1,000 account risking 1%, or $10, with EUR/USD worth about $10 per pip on a standard lot (100,000 units), the size is 10 ÷ (45 × 10) = 0.022 lots, rounded down to 0.02. The position size calculator will do the sum for you. The reward is only a little larger than the risk, which is common: waiting for confirmation costs you part of the move.

Why Does Divergence Fail in Strong Trends?

In a strong trend, an indicator can show divergence three, four or five times in a row while price keeps going. A trader who sells every bearish divergence in a firm uptrend takes a string of losses before the one that finally works.

RSI cannot go above 100, so it cannot keep making higher highs for ever, even when price can. The most powerful leg of a trend sets the highest reading, and every later high made with less force diverges from it. That is not a sign of reversal. It is how trends normally age.

Best Timeframes and Conditions for Divergence

Divergence on the 4-hour and daily charts is more dependable than on the 5-minute chart, where small swings produce it constantly. A useful habit from multi-timeframe analysis is to look for regular divergence only where the higher timeframe has reached a major level, and for hidden divergence only in the direction of the higher-timeframe trend.

Regular divergence is at its best in ranging markets and at the end of long moves into a known level. It is at its worst early in a new trend and just after major news, when one huge candle distorts the reading.

A Divergence Trading Checklist

  • Are the two price swings clear and complete?
  • Did you compare the indicator at the same points in time?
  • Is it regular or hidden, and does that suit the higher-timeframe picture?
  • Is the second swing at a level that has mattered before?
  • Has price given a trigger?
  • Is the stop beyond the second swing, the target at least as large as the risk, and the loss capped at 1% of the account?

If any answer is no, there is no trade. Log the divergences you traded and the ones you skipped, so your trading journal shows whether your rules help.

Divergence cannot tell you when a trend will end or how far a reversal will travel, and it can repeat many times before price turns. Forex and CFDs carry a high risk of loss. Only risk money you can afford to lose.

FAQ

What are the best RSI settings for divergence?

Most traders use the default 14-period RSI, and there is no setting proven to be best. A shorter period, such as 7 or 9, reacts faster and shows more divergences, many of them false. A longer period shows fewer and later ones. It matters more that you use the same setting every time, so your testing and your trading match.

Is divergence a leading or lagging signal?

It is often called a leading signal because it can appear before price turns. In practice it is less clear-cut. Oscillators are calculated from past prices, and a divergence is only confirmed once the second swing has finished forming, which takes several candles. Think of it as an early warning that still needs confirmation from price.

What is the difference between divergence and convergence?

Convergence means price and the indicator agree: both make higher highs in an uptrend, or both make lower lows in a downtrend. It confirms that momentum supports the trend. Divergence means they disagree, with price making a new extreme that the indicator does not match. Convergence is the normal state, and divergence is the exception worth noting.

Is divergence trading good for beginners?

It is a useful skill to learn, but a risky first strategy. Regular divergence asks you to trade against the trend, which is where beginners lose most often. A safer path is to learn trend and support and resistance first, then use divergence as one extra clue, always with a confirmation trigger and a stop beyond the last swing.

Free Divergence Scripts for TradingView

Open-source Pine scripts from the ForexR library that build on this indicator. Copy one into TradingView's Pine Editor to try it on your own chart.

Free Divergence Pine Scripts · How to add a script to TradingView

Related on ForexR

Next lesson Bollinger Bands Explained: Squeeze, Band Walks & Signals Continue

More Intermediate Guides

Support and Resistance in Forex: How to Draw Key Levels How to Draw Trend Lines and Channels in Forex (Step by Step) Supply and Demand Zones in Forex: How to Find and Trade Them Forex Candlestick Patterns: Pin Bars, Engulfing, Doji & More Forex Chart Patterns: Reversal & Continuation Explained Forex Breakout Trading: How to Trade Breakouts & Spot Fakeouts Moving Averages in Forex: SMA vs EMA, Crossovers & Trends MACD Indicator Explained: Settings, Signals & Divergence RSI Indicator in Forex: Settings, Signals & Divergence Stochastic Oscillator Explained: Settings, Signals and Strategy Bollinger Bands Explained: Squeeze, Band Walks & Signals Ichimoku Cloud Explained: A Simple Guide to All Five Lines Forex Pivot Points: Formula, Levels & How to Trade Fibonacci Retracement in Forex: Levels, Drawing & Examples ATR Indicator in Forex: How to Measure Volatility Most Volatile Currency Pairs (and the Calmest): How to Trade Them Best Forex Indicators for Beginners: The 7 Worth Learning Stop-Loss Strategies in Forex: Placement, Sizing & Trailing Take-Profit Strategies: When and Where to Exit a Winning Trade Risk-Reward Ratio Explained: What It Is and How to Use It Position Sizing in Forex: How to Calculate the Right Lot Size Forex Risk Management: Position Sizing & the 1-2% Rule How to Create a Forex Trading Plan (Simple Template Included) Forex Trading Styles: Scalping, Day, Swing & Position Forex Scalping for Beginners: How It Works, Costs and Rules Day Trading Forex: A Realistic Beginner’s Guide and Routine Swing Trading Forex: How to Catch Moves Over Days, Not Minutes Types of Forex Brokers: ECN vs STP vs Market Maker Explained How to Choose a Forex Rebate Provider: 9 Checks to Make First Total Trading Cost Explained: EUR/USD vs Gold After Rebates EA Settings Explained: Lot Size, Magic Number, Stop-Loss & More How to Backtest an EA in the MT4 and MT5 Strategy Tester How to Choose a Safe Forex EA: A 12-Point Checklist Pine Script Indicators vs Strategies vs Libraries Explained Pine Script Basics: Write Your First TradingView Indicator Pine Script Inputs: How to Make Script Settings Adjustable How to Read a Pine Script Before You Trust It: A Checklist How to Edit a Pine Script: Colours, Lengths and Filters Pine Script Alerts: alertcondition(), alert() and Webhooks Pine Script Sessions and Time: Shade London, New York, Asia Pine Script request.security(): Multi-Timeframe Done Safely Repainting in TradingView: How to Spot a Script That Repaints Build a Moving Average Crossover Strategy in Pine Script AI Trading Tools Explained: What Helps and What Sells AI Trading Signals: What They Are and When to Trust One How to Read a Signal Track Record: Win Rate, R and Sample Size AI Market Analysis: How Machines Read the Forex Market AI Sentiment Analysis in Trading: News Data Explained Fundamental Analysis in Forex: What Moves Currencies Safe-Haven Currencies: Risk-On and Risk-Off Explained Gold and the US Dollar: Why They Usually Move Apart Gold and Interest Rates: Why Real Yields Drive the Price Is Gold an Inflation Hedge? What 50 Years of Data Say Gold as a Safe Haven: When It Works and When It Fails Gold Trading Strategies: 5 Setups to Test on XAU/USD Gold Scalping: Costs, Timeframes and Rules for XAU/USD Gold Technical Analysis: Levels, ATR and Round Numbers How to Trade Gold During News: NFP, CPI and Fed Days Gold Correlations: Dollar, Yields, Silver, AUD and Bitcoin Gold-Silver Ratio Explained: How to Read and Trade It Gold vs Bitcoin: Which Is the Better Store of Value? How to Choose a Broker for Gold Trading: 9 Things to Check

Choose a Regulated Broker

Put what you’ve learned to work with a regulated broker. Compare costs, platforms and licences side by side.

Compare top brokers