> For the complete documentation index, see [llms.txt](https://algotrade-1.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://algotrade-1.gitbook.io/docs/indicators-library-and-guide/rsi-relative-strength-index.md).

# RSI (Relative Strength Index)

#### What is RSI?

The **Relative Strength Index (RSI)** is a momentum oscillator that measures the speed and change of price movements. It helps traders determine whether an asset is **overbought** or **oversold**, which can be useful for identifying potential entry or exit points.

* RSI values range from **0 to 100**.
* Typically:
  * **Above 70** suggests an asset may be **overbought** (potential reversal down).
  * **Below 30** suggests an asset may be **oversold** (potential reversal up).

***

#### Why Use RSI in Your Strategy?

RSI is a great tool for:

* Spotting potential **reversals** in price.
* Confirming **momentum strength** before entering a trade.
* Filtering out noise in choppy markets.
* Timing entries and exits more accurately when combined with other indicators.

It works best in **range-bound markets**, but can also complement trend-following strategies when used with other confirmations.

***

#### RSI Settings in the AlgoBuilder

When adding RSI to your strategy inside the **AlgoBuilder**, you’ll be able to customize or use the following parameters:

| Setting              | Description                                                                          |
| -------------------- | ------------------------------------------------------------------------------------ |
| **RSI Period**       | The number of candles used to calculate RSI (default is 14).                         |
| **Overbought Level** | The threshold for when an asset is considered overbought (default suggestion is 70). |
| **Oversold Level**   | The threshold for when an asset is considered oversold (default suggestion is 30).   |

#### Example Usage: RSI in Your Strategy

Here are some ways you can use RSI within your strategy logic inside the **AlgoBuilder**:\
\
**Long Entry Examples:**

1. **Oversold Bounce**:\
   *Enter a long position when RSI drops below 30 and then crosses back above it.*\
   → This can signal that bearish momentum is slowing and a reversal may be near.
2. **Bullish Momentum Confirmation**:\
   *Enter when RSI is rising and crosses above 50, showing increasing upward momentum.*\
   → Useful when paired with a moving average or MACD bullish crossover.

**Short Entry Examples:**

1. **Overbought Reversal**:\
   *Enter a short position when RSI rises above 70 and then drops back below it.*\
   → This can signal weakening bullish momentum and a possible trend reversal.
2. **Bearish Momentum Confirmation**:\
   *Enter short when RSI falls below 50, confirming bearish momentum in the market.*\
   → Often used in downtrending markets to ride further downside.

**🎯 Take Profit / Exit (Long) Examples:**

1. **Take profit if RSI reaches overbought levels**:\
   *Exit your long when RSI hits or exceeds 70.*\
   → Suggests the asset may be overextended and due for a pullback.
2. **Exit on RSI reversal**:\
   *Exit the long when RSI starts falling sharply after peaking near 60–70.*\
   → Indicates weakening momentum and potential reversal.

**🎯 Take Profit / Exit (Short) Examples:**

1. **Take profit if RSI reaches oversold levels**:\
   *Exit your short when RSI drops to or below 30.*\
   → Suggests the downside move may be exhausted.
2. **Exit on RSI reversal upward**:\
   *Exit the short if RSI climbs back above 40 after dropping low.*\
   → Could indicate a bullish reversal or short-term bounce.

***

#### Tips for Using RSI in the AlgoBuilder

* Combine RSI with **trend-following indicators** (like EMA or MACD) to avoid false signals.
* Use RSI as a **confirmation filter** rather than the only entry condition.
* Customize the RSI period to suit your timeframe shorter periods (e.g., 7) react faster, longer periods (e.g., 21) are more stable.
