> For the complete documentation index, see [llms.txt](https://docs.bigbeluga.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bigbeluga.com/ultimate-suite/ultimate-rsi-suite/rsi-divergence.md).

# RSI Divergence

The RSI Divergence module detects when **price and momentum move in opposite directions**, revealing hidden shifts in market strength before trend reversals occur.

<figure><img src="/files/0A8gRd2wWHfospOecCXN" alt=""><figcaption></figcaption></figure>

This feature helps traders spot potential turning points that are often invisible in raw price action, making it a key element of the Ultimate RSI Suite.

##

## Divergence

The indicator continuously compares swing highs and lows on RSI against swing highs and lows on price within a defined lookback range.

* **Regular Bullish Divergence:**\
  Price makes a lower low, while RSI forms a higher low.\
  This signals weakening bearish momentum and a potential reversal upward.
* **Regular Bearish Divergence:**\
  Price makes a higher high, while RSI forms a lower high.\
  This signals fading bullish strength and a possible reversal downward.

<figure><img src="/files/lNgHEqquukw7JgHP52q4" alt=""><figcaption></figcaption></figure>

Each divergence is confirmed only when both RSI and price structure complete their swings, ensuring reliable signals rather than premature markings.

<div align="left" data-with-frame="true"><figure><img src="/files/46g3ZESofP5h3VOwsDzc" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
Controlled by the “Divergence Length” setting (default: 10).\
This defines how many bars the algorithm scans for relevant swing points.
{% endhint %}

##

## Deviation Tracking (+1 / +2)

When enabled, **Deviation Mode** adds dynamic follow-through tracking to each divergence.\
It projects two Volatility-based levels labeled **+1** and **+2** from the signal candle to monitor how the market reacts after divergence confirmation.

* **+1 Cross:** Indicates initial continuation strength.
* **+2 Cross:** Signals strong confirmation that the reversal is developing.

<figure><img src="/files/XWIR7B95S28wPe2ls8q9" alt=""><figcaption></figcaption></figure>

Each level changes to a dashed style once price touches it, providing clear visual feedback that the deviation has completed.

<div align="left" data-with-frame="true"><figure><img src="/files/iP3Zi3BTsU6eCbbA8xi8" alt=""><figcaption></figcaption></figure></div>

This feature turns divergence detection into a fully interactive confirmation framework, not just static labeling.

##

## Hidden Divergence

While regular divergence signals a potential trend reversal, hidden divergence suggests that the current trend is strong and likely to continue.

* Hidden Bullish Divergence: Price makes a higher low, while RSI forms a lower low. This indicates that despite the dip in momentum, the buyers are still holding a higher floor, suggesting the uptrend will continue.
* Hidden Bearish Divergence: Price makes a lower high, while RSI forms a higher high. This indicates that even though momentum spiked, the price couldn't break the previous ceiling, suggesting the downtrend will continue.

<div><figure><img src="/files/OeO5Sg1X6ybdvDToNGSB" alt=""><figcaption><p>Bearish Hidden Divergence</p></figcaption></figure> <figure><img src="/files/S0SnM4Wk6Epdr357R81G" alt=""><figcaption><p>Bullish Hidden Divergence</p></figcaption></figure></div>

##

## Settings

<div align="left" data-with-frame="true"><figure><img src="/files/p8tzZBuF8a6yDA5oXQvL" alt=""><figcaption></figcaption></figure></div>

| Setting    | Description                                                                                |
| ---------- | ------------------------------------------------------------------------------------------ |
| Divergence | Lookback Range. Sets how many candles back the script looks for highs and lows.            |
| Deviation  | Sensitivity. Adjusts the calculation for the +1/+2 levels and filters out "noisy" signals. |
| Hidden     | Trend Continuation. Toggle to show or hide Hidden Divergence signals.                      |
