# RSI

The Relative Strength Index (RSI) is a momentum oscillator that measures the magnitude of price movements as well as the speed or velocity of these movements. RSI measures the changes in price over a time period. The formula divides the average gain the price has had over that time by the average loss it has sustained and then plots data on a scale from 0 to 100 and is plotted on a separate chart.&#x20;

{% hint style="info" %}
CFDHero RSI: a buy signal is generated when RSI is oversold, a sell signal is generated when RSI is overbought.
{% endhint %}

![](/files/-M64LTSkisznQUdV5hHE)

RSI values (purple) closer to 0 indicates overbought market conditions while values closer to 100 indicates oversold. Thresholds (yellow band) are usually assigned to RSI values, anything below 30 indicates sold, while above 70 can indicate overbought. For time period and trading intervals, lower thresholds may be used as a measure to reduce market noise or to produce a more confident signal.

```
RSI = 100 – 100/ (1 + RS)
RS = Average Gain of n days UP  / Average Loss of n days DOWN
```


---

# Agent Instructions: 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:

```
GET https://docs.cfdhero.com/technical-indicators/rsi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
