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.
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
| Type | What happens | What it suggests |
|---|---|---|
| Bullish regular | Price makes a lower low while the oscillator makes a higher low. | Bearish momentum is exhausting → possible bullish bounce. |
| Bearish regular | Price makes a higher high while the oscillator makes a lower high. | Bullish momentum is exhausting → possible bearish reversal. |
| Bullish hidden | In 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 hidden | In a downtrend, price makes a lower high while the oscillator makes a higher high. | Continuation signal: the bounce is weak and the downtrend continues. |
How to detect a divergence, step by step
- Identify two pivots on price: two consecutive highs (for a bearish divergence) or two consecutive lows (for a bullish one).
- Check the oscillator at the same points: the peak or trough that corresponds to each price pivot.
- Compare slopes: if price accelerates but the oscillator decelerates (or vice versa), there is a divergence.
- 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.
- 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
| Oscillator | Best for | Detail |
|---|---|---|
| RSI | General reference | The most used and balanced. Its extremes (70/30) mark classic overbought and oversold zones. |
| Stochastic | Fast reaction | Very responsive; useful for intraday, with its %K and %D parameters configurable. |
| CCI | Cycles | Commodity Channel Index, a classic for cyclical exhaustion, with its own period (default 20). |
| Momentum (ROC) | Anticipation | Percentage change of price over N bars. The most "pure" divergence between price and velocity. |
| Momentum EMA | Trend | Percentage 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.
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.