> For the complete documentation index, see [llms.txt](https://docs.yummyprofit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yummyprofit.com/indicator-and-strategy/trading-strategy/rsi-divergences.md).

# RSI divergences

![](/files/-Mi7_S_gGvL5PC2uF2nw)

THE RELATIVE STRENGTH INDEX (RSI) is a momentum indicator used in technical analysis that measures the magnitude of recent price changes to evaluate overbought or oversold conditions in the price of a stock or other asset. The RSI is displayed as an oscillator (a line graph that moves between two extremes) and can have a reading from 0 to 100.

![](/files/-Mi7_YTKLUScCgXQwqjM)

## Alert when

* Bullish signal: The RSI forms two rising lows that correspond with two falling lows on the price
* Bearish signal: The RSI forms a series of two falling highs that correspond with two rising highs on the price

## Indicator config

* RSI length: 14

## TIPs for trading

![](/files/-Mi7aIKLdepcZiIgKGsc)

![](/files/-Mi7aMM8oyiNGT56BlYn)

A bullish divergence occurs when the RSI creates an oversold reading followed by a higher low that matches correspondingly lower lows in the price. This indicates rising bullish momentum, and a break above oversold territory could be used to trigger a new long position.

A bearish divergence occurs when the RSI creates an overbought reading followed by a lower high that matches corresponding higher highs on the price.

As you can see in the following chart, a bullish divergence was identified when the RSI formed higher lows as the price formed lower lows. This was a valid signal, but divergences can be rare when a stock is in a stable long-term trend. Using flexible oversold or overbought readings will help identify more potential signals.

## Tradingview Script

{% embed url="<https://www.tradingview.com/script/0TgfxuaU-YummyProfit-RSI-Divergence/>" %}


---

# 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.yummyprofit.com/indicator-and-strategy/trading-strategy/rsi-divergences.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.
