RSI Divergence
Divergence occurs when price and RSI move in opposite directions — price making a new high while RSI makes a lower high, or vice versa. It's a warning that momentum is fading. We detect four types: Regular Bullish, Regular Bearish, Hidden Bullish, and Hidden Bearish.
Divergence is one of the few leading signals in technical analysis — it often precedes a reversal before price confirms. Regular divergence suggests a trend is about to reverse; hidden divergence suggests a trend is about to continue. It's a favourite of experienced traders for early entries.
Computed
We use argrelextrema to find swing highs and lows in both the price series and the RSI series. Then we compare the last two swing points in each series over a rolling 20-day window. When price and RSI disagree on direction, we classify the divergence type.
- Regular Bullish → potential reversal UP; strongest when RSI was oversold.
- Regular Bearish → potential reversal DOWN; strongest when RSI was overbought.
- Hidden Bullish → continuation of an uptrend expected.
- Hidden Bearish → continuation of a downtrend expected.
- 'No divergence' means price and momentum are aligned.
- Divergence is a warning, not a trigger — wait for price confirmation.
- Acting on divergence immediately — it can persist for weeks before price responds.
- Missing hidden divergences — they're less famous but equally useful.
- Over-trading — divergences are common; filter for ones that occur at obvious support/resistance.
Stockenza Method · Updated 2026-10-14 · Educational use only
