> For the complete documentation index, see [llms.txt](https://docs.itradingbot.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.itradingbot.net/en/signals-and-strategy-conditions/indicators/relative-strength-index-rsi.md).

# Relative Strength Index — RSI

<mark style="color:$tint;">The RSI is calculated on the change in closing price. In ITradingBot, the signal condition depends on the chosen way to cross borders or change direction. This indicator is available in the ISignal entry and exit blocks.</mark>

### Set the time and boundaries

<mark style="color:$tint;">Add the RSI to the right block. The instrument is out of the question. Select</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**The TF**</mark><mark style="color:$tint;">, Candle Type and</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**Calculation**</mark><mark style="color:$tint;">. The bar closure check uses a closed bar, and the bar at the intersection (every second) allows you to check the bar that is forming.</mark>

<mark style="color:$tint;">Please specify</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**The period**</mark><mark style="color:$tint;">, Upper boundary and Lower boundary. The limits are the RSI, not the price of the instrument. The upper limit should be higher than the lower limit.</mark>

<mark style="color:$tint;">For the conditions of exit and return to the canal, the period is allowed from 2 to 30 bars, each limit from 10 to 90. For a trend shift, the period is limited to the range of 220, and both boundaries to the range of 3070.</mark>

<mark style="color:$tint;">By default, the new card lists the period 14, the upper boundary 70, the lower boundary 30, and the exit conditions. These values describe the form and are not a recommendation.</mark>

### Select the signal condition

<mark style="color:$tint;">The following rules apply when the Reverse is turned off.</mark>

**When you leave the channel**

* <mark style="color:$tint;">Long signal: RSI moves from top to bottom or below.</mark>
* <mark style="color:$tint;">Shortcut: RSI moves down to the upper limit or above it.</mark>

**When you get back to the channel**

* <mark style="color:$tint;">Long signal: RSI rises from the area below the lower boundary to or above it.</mark>
* <mark style="color:$tint;">Short signal: RSI descends from the area above the upper boundary to or below it.</mark>

**By the change of trend**

<mark style="color:$tint;">The indicator takes into account which RSI boundary the last one reached. A long signal occurs when the RSI becomes significantly higher than the upper limit after reaching the lower limit. Short when the RSI becomes significantly lower than the lower limit after reaching the upper limit. Just being inside the canal or touching the border is not enough.</mark>

### Check the role and reverse

<mark style="color:$tint;">The reverse switch changes the direction of the signals in places. The signal in the entry block must match the direction of the task. In the exit block without reverse, the long closes on the short signal, and the short closes on the long.</mark>

<mark style="color:$tint;">To exit, select the action in the</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">**When the signal is received**</mark> <mark style="color:$tint;"></mark><mark style="color:$tint;">field. The shutdown, taking into account the deviation, depends on the configuration and the type of robot. The name of the regime does not guarantee a final profit after execution and expenses.</mark>

<mark style="color:$tint;">Keep the card and check the set of conditions. RSI filters are separate cards with their own conditions; the presence of RSI among filters does not replace the addition of an entry or exit indicator.</mark>

<mark style="color:$tint;">For more information on the robot's storage and reaction, see ISignal. —</mark> [<mark style="color:$tint;">The ISignal instructions</mark>](/en/signals-and-strategy-conditions/isignal-entry-filters-and-exit.md) <mark style="color:$tint;">The RSI signal does not mean that the order has been accepted or executed on the exchange.</mark>
