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.
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?
#| RSI | What it suggests |
|---|---|
| Above 70 | Recent up moves have been strong. Often called overbought. |
| 30 to 70 | No strong push either way. |
| Below 30 | Recent 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
- Moving averages: SMA and EMA explainedA moving average smooths price into one line. Learn how the SMA and EMA are calculated, how they differ, and how to use them in your own rules.
- What is backtesting?Backtesting runs your rules on past prices to see how they would have behaved. Learn what it shows, what it cannot show, and how to read the report.