RSI Trading Strategy: The 14-Period Rules, Tested Honestly
May 5, 2026 · Agenttrading
An RSI trading strategy uses the Relative Strength Index, a 0-100 oscillator that measures how fast price has been rising or falling, to time entries and exits. The classic rules treat readings below 30 as oversold and above 70 as overbought. Tested honestly, RSI rules behave like most mean-reversion tools: useful in choppy, range-bound markets, costly in strong trends, and sensitive to trading costs. Here is how the indicator works, the standard rules, a testable variant, and the trade-offs that decide whether any of it holds up.
How RSI(14) is calculated
The RSI was introduced by J. Welles Wilder in his 1978 book New Concepts in Technical Trading Systems, with 14 periods as the default setting that most platforms still use. The calculation runs in three steps over the last 14 trading days:
- Separate each day's price change into a gain (up days) or a loss (down days).
- Compute the average gain and average loss using Wilder's smoothing, which blends each new day into the running average rather than recomputing from scratch.
- Form the relative strength RS = average gain / average loss, then RSI = 100 - 100 / (1 + RS).
The output always lands between 0 and 100. A reading of 50 means gains and losses have been balanced; 70+ means recent action has been dominated by gains; 30 or below means dominated by losses. One practical note: Wilder's smoothing means two platforms disagreeing on RSI values are usually using different warm-up periods or simple instead of smoothed averages, which is exactly the kind of parameter a backtest should state explicitly.
The classic 30/70 RSI rules
The textbook strategy is symmetric: buy when RSI(14) drops below 30 (oversold), sell when it rises above 70 (overbought). The logic is mean reversion, betting that a stretched short-term move snaps back toward normal.
The textbook version has a known practical flaw: in a strong downtrend, RSI can pin below 30 for weeks while price keeps falling, and in a strong uptrend it can sit above 70 for months while price keeps rising. "Oversold" is a statement about the last 14 days, not a floor. Waiting for RSI 70 to exit a mean-reversion trade also means holding through the full round trip of many bounces that stall at 55 or 60.
A common mean-reversion variant tightens the exit instead: buy when RSI(14) drops below 30, sell when it recovers past 55. The position is only held while the snap-back thesis is actually playing out, which shortens holding periods and takes profits at "back to normal" rather than "now overbought." That exact sentence is a complete specification a trading strategy builder can turn into a rule card, Entry: RSI(14) < 30, Exit: RSI(14) > 55, and test without any code.
Where RSI strategies work and where they fail
The honest summary of RSI mean reversion on liquid indexes like SPY, across published research and our own illustrations, is a three-part trade-off:
| Market regime | RSI mean-reversion behavior | Why |
|---|---|---|
| Choppy, range-bound | Historically its best environment | Dips reliably snap back toward the range; oversold readings mean-revert quickly |
| Strong sustained uptrend | Lags buy-and-hold | RSI rarely reaches 30, so the rule sits in cash while the market compounds without it |
| Crash or persistent downtrend | Its worst stretches | RSI pins below 30 while price keeps falling; early entries catch falling knives |
Two costs deserve special attention because backtests routinely ignore them:
- The cash-sitting cost. An RSI dip-buying rule is out of the market most of the time. In a decade like 2010-2019, when the S&P 500 spent long stretches grinding higher with few deep dips, a rule that only owns stocks after RSI 30 events simply was not invested for most of the gains. The rule's equity curve can look calm while quietly forfeiting the compounding that made the benchmark rich. Always compare against buy-and-hold of the same asset over the same dates.
- Trading costs at high trade counts. Mean-reversion rules trade often. A rule that fires 200+ round trips over 20 years pays roughly 18 to 20 percent cumulative drag at a realistic 0.1 percent per trade, before slippage on bad days. Many RSI edges published without costs are smaller than the tolls they generate. In our historical illustrations, the RSI(14) 30/55 rule on SPY earned a MIXED verdict: shallower worst drawdown than buy-and-hold, lower total return, with cost drag and time-in-cash doing most of the damage.
Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.
How to test an RSI strategy honestly
RSI rules are precisely specifiable, which makes them ideal backtesting material. A test worth trusting has five properties:
- The full rule stated up front: RSI period, entry threshold, exit threshold, execution at the close, all-in-all-out sizing. Change any one and it is a different strategy.
- 20+ years of split- and dividend-adjusted daily data, so the rule faces 2008, the 2010s trend, 2020, and 2022, not just the regime it was designed in.
- Costs included on every trade, 0.1 percent as a floor, because trade count is exactly where this family of rules is vulnerable.
- A buy-and-hold benchmark on the same chart, so time in cash is priced, not hidden.
- Parameter nudges before belief. If 30/55 works but 32/55 and 30/60 fall apart, the result is curve-fit noise. Robust versions of a real effect degrade gently.
Also read the trade count with the drawdown: a version of the rule that fired 14 times in two decades proves little either way, however clean the curve looks. The full checklist lives in our guide on how to backtest a trading strategy, and the deeper question of why oversold conditions snap back at all is covered in mean reversion trading.
The bottom line on RSI strategies
RSI is a well-defined, honest indicator attached to a strategy family with real but conditional historical behavior: it has tended to earn its keep in chop, pay for it in trends, and hand a meaningful slice back in costs. Nobody can tell you in advance which regime the next five years will be, which is precisely why the rule should be tested rather than trusted. Type your exact version, thresholds, ticker, and all, into an AI trading assistant, run it on 20+ years of adjusted history with costs included, and read the verdict with the risk panel attached. If the rule survives the honest test, you will know exactly what trade-off you are choosing; if it does not, the test cost you minutes instead of a drawdown.
Put it on the bench
Ideas are cheap. Verdicts take a bench.
Agenttrading restates your idea as a testable rule, backtests it on 20+ years of adjusted daily data, and explains the risks in plain English. Honest verdicts, even when the idea loses.
Past performance does not guarantee future results. For educational and informational purposes only. Not financial advice. Consult a licensed advisor.