> 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.                      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bigbeluga.com/ultimate-suite/ultimate-rsi-suite/rsi-divergence.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
