What is RSI? The RSI indicator explained

By Oalgo · Last reviewed

The Relative Strength Index (RSI) compares the size of recent up moves with recent down moves. It moves between 0 and 100. The usual setting looks at the last 14 candles.

Chart: example prices with a 14-period RSI below them. Lines mark the levels 30 and 70.PriceRSI 147030
Example prices, made up for this page.

How is RSI calculated?

#
  • For each candle, take the change from the previous close. Up moves and down moves are kept apart.
  • Smooth the average up move and the average down move over 14 candles, using Wilder's method.
  • Divide the average up move by the average down move. This is RS.
  • RSI = 100 − 100 ÷ (1 + RS).

How do you read RSI levels?

#
RSIWhat it suggests
Above 70Recent up moves have been strong. Often called overbought.
30 to 70No strong push either way.
Below 30Recent down moves have been strong. Often called oversold.

A high RSI does not mean price must fall, and a low RSI does not mean it must rise. In a strong trend, RSI can stay above 70 or below 30 for a long time.

How do people use RSI in rules?

#
  • Enter when RSI crosses back above 30, and exit when it crosses below 70.
  • Use RSI together with a trend filter, such as price above a moving average.
  • Change the length: a shorter RSI moves more, a longer one moves less.

Test each version on past prices with a backtest, then forward test the one you like.

In Oalgo you can tell Oalgo AI your RSI rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read next