RSI strategy: oversold and overbought rules, explained
By Oalgo · Last reviewed
An RSI strategy uses the RSI level to find moves that went a long way in one direction. A common rule is to enter when RSI falls below 30, called oversold, and to exit when it climbs back, for example above 50. It assumes price moves back toward its recent average, which is why this kind of rule is called mean reversion.
What are the rules of an RSI strategy?
#- Entry: RSI over 14 candles falls below 30. A common variant waits for RSI to cross back above 30, so the entry comes after the fall has paused.
- Exit: RSI rises above 50, the middle of its scale. Some rules wait for 70, called overbought.
- Stop: a Stop Loss as a percentage, because RSI can stay low while price keeps falling.
How do you write this strategy in Oalgo?
#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.
For example, you could tell Oalgo AI: "Enter when RSI (14) falls below 30. Exit when RSI rises above 50. Use a 1% Stop Loss and a 2% exit target." These numbers are examples to change. A Live Strategy needs a stop on each side it can enter, and an exit target is optional. The example names both.
How do you test this strategy honestly?
#- Run a backtest on a falling period and on a rising period. The same rule behaves very differently in each.
- Check the fees and the number of trades. A rule that enters on every dip trades often.
- Move the levels a little, for example 30 to 25 and 35. If the report changes a lot, the first result may be fitted to one period.
- Run a forward test on new prices, with simulated funds.
What can an RSI strategy not tell you?
#Oversold does not mean price has to turn. In a strong fall RSI can stay below 30 for many candles while price keeps going down, so an entry can come far too early. In a strong rise RSI may never fall to 30, and the rule sits out the move.
People often add a trend filter to deal with this, for example by only entering while the close is above a long EMA. The EMA pullback strategy shows one way. A filter adds more settings, and it comes late when a trend ends.
Read next
- What is RSI? The RSI indicator explainedThe RSI indicator compares recent up moves with down moves on a scale from 0 to 100. Learn how it is calculated, how to read it, and how to test RSI rules.
- Stochastic strategy with a trend filter, explainedA Stochastic strategy enters when %K crosses above %D below 20 and exits near 80, with a trend filter against down-trends. See the rules and the tests.