Guide · Technical analysis

Trading divergences: complete guide to detecting them

Regular and hidden, bullish and bearish: what they mean, how they form and how to detect them in the RSI, the Stochastic, the CCI and momentum.

A divergence is, in a nutshell, a discrepancy between what price does and what its oscillators say. It is one of the classic technical analysis tools because it often anticipates the exhaustion of a move before price confirms it.

Keep exploring: which session they usually form in · confluence with order blocks · chart patterns that confirm them.

What a divergence is and why it matters

Oscillators like the RSI, Stochastic or CCI measure the speed and strength of a move. When price keeps making new extremes but the oscillator fails to follow (making less pronounced extremes), something is weakening. That gap between price and the oscillator is the divergence.

It is not a 100% buy-or-sell signal: it works as an exhaustion or continuation warning, and its reliability increases when it coincides with support, resistance, liquidity zones or other confluences.

The four types of divergences

TypeWhat happensWhat it suggests
Bullish regularPrice makes a lower low while the oscillator makes a higher low.Bearish momentum is exhausting → possible bullish bounce.
Bearish regularPrice makes a higher high while the oscillator makes a lower high.Bullish momentum is exhausting → possible bearish reversal.
Bullish hiddenIn an uptrend, price makes a higher low while the oscillator makes a lower low.Continuation signal: the pullback is healthy and the trend continues.
Bearish hiddenIn a downtrend, price makes a lower high while the oscillator makes a higher high.Continuation signal: the bounce is weak and the downtrend continues.
In a sentence: regular divergences look for reversals; hidden ones look for trend continuation. Using each in the right context is what makes them profitable.

How to detect a divergence, step by step

  1. Identify two pivots on price: two consecutive highs (for a bearish divergence) or two consecutive lows (for a bullish one).
  2. Check the oscillator at the same points: the peak or trough that corresponds to each price pivot.
  3. Compare slopes: if price accelerates but the oscillator decelerates (or vice versa), there is a divergence.
  4. Look for confluence: a divergence supported by a support level, a liquidity zone or a key EMA is more valuable than one in the middle of nowhere.
  5. Wait for confirmation: a break of structure (breaking a recent high or low) reduces the risk of a failed signal.

Which oscillator to use to detect them

OscillatorBest forDetail
RSIGeneral referenceThe most used and balanced. Its extremes (70/30) mark classic overbought and oversold zones.
StochasticFast reactionVery responsive; useful for intraday, with its %K and %D parameters configurable.
CCICyclesCommodity Channel Index, a classic for cyclical exhaustion, with its own period (default 20).
Momentum (ROC)AnticipationPercentage change of price over N bars. The most "pure" divergence between price and velocity.
Momentum EMATrendPercentage change of the chosen EMA (1 to 4); detects trend deceleration before price does.

Combining two oscillators (for example, RSI + momentum) reduces false signals: they don't need to agree, but it gives you a good yardstick for the relevance of each divergence.

Can they be detected automatically in TradingView?

Yes. A Pine Script indicator can calculate the price and oscillator pivots, compare them and draw the divergence line automatically, with color by signal type (regular or hidden). The divergence engine in Todo lo posible works across five oscillators at once —RSI, Momentum EMA, Stochastic, CCI and Momentum ROC—, draws divergences directly on price and stretches the latest one in real time, tick by tick, on the active bar. Its alerts fire when a bullish or bearish divergence is confirmed.

Todo lo posible · TradingView indicator

A divergence engine across 5 oscillators with live extension, plus structure, S/R, liquidity, patterns and 33 alerts. €10, one-time payment.

Frequently asked questions

What is a bullish divergence?

A regular bullish divergence occurs when price makes a lower low and the oscillator a higher low. It signals that bearish momentum is exhausting and a bounce may follow.

What is a hidden divergence?

They point in the direction of the main trend: in an uptrend, price makes higher lows and the oscillator lower lows. They are continuation signals, not reversals.

Which oscillator is best to combine with divergences?

RSI is the most balanced; Stochastic is fast; CCI fits cycles; momentum anticipates exhaustion. Combining two of them reduces false signals.

Can I detect them automatically in TradingView?

Yes. A Pine Script indicator locates the price and oscillator pivots and draws the divergence automatically, with real-time extension on the current bar.

Keep exploring