RSI Trading Strategy: The 14-Period Rules, Tested Honestly
May 5, 2026 · AgentTrading
- 1 THESIS
- 2 EVIDENCE
- 3 BACKTEST
- 4 RISK
- 5 VERDICT
02 EVIDENCE · FUNDAMENTALS
04 RISK · IN PLAIN ENGLISH
Sample scenarios, not a live backtest of what you typed. Past performance does not guarantee future results. Educational analysis only, not financial advice.
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, the deeper question of why oversold conditions snap back at all is covered in mean reversion trading, and the errors that most often flatter an RSI curve are collected in common backtesting mistakes.
RSI setups are also the most common entry sold inside AI swing trading products, usually as an alert rather than as a tested rule. If you are weighing those services, the comparison of scoring and signal tools against a bench that tests your own thresholds is on AI swing trading software, and the risk that a high-RSI-signal stock is simply a high-beta stock is worth checking in what is a good beta for a stock.
Is RSI a good indicator?
RSI is a useful indicator in the right conditions, but it is not a standalone system. It measures whether recent price moves have been unusually one-sided, which helps time entries in range-bound, choppy markets where prices tend to snap back. In strong trends it works poorly, because a stock can stay "overbought" for months while it keeps climbing. RSI is a good tool when you know its blind spot and pair it with a regime filter, and a misleading one when you treat 30 and 70 as automatic buy and sell buttons.
Like any single indicator, RSI describes the past, not the future. The only way to know whether an RSI rule has an edge on the stocks you trade is to test it on years of history with realistic costs, not to trust the tidy examples in a tutorial.
What is the best RSI setting for trading?
The default 14-period RSI with 30 and 70 thresholds is the most widely used and a sensible starting point, but there is no single best setting. Shorter lookbacks such as RSI(2) or RSI(5) react faster and generate more signals, which suits short-term mean-reversion systems, while longer periods smooth the line and cut noise. Tighter thresholds like 20 and 80 trade less often but demand a stronger stretch before acting. The right setting depends on the market and timeframe, and it should be chosen by testing, not by copying a number.
Be careful here: it is easy to tune RSI settings until they look perfect on past data and then watch them fail live. That is curve-fitting, and it is why any setting you like should be checked with out-of-sample or walk-forward testing before you trust it.
Why the same RSI(14) is not the same number everywhere
One detail decides whether any of the above can be tested honestly, and almost nobody mentions it. Wilder's RSI is recursive: each average is the previous average plus one fourteenth of the move to the new bar, so every reading still carries a fraction of whatever value the calculation started from. The weight left on that starting seed after k bars is thirteen fourteenths raised to the power k, which is 35% after 14 bars, about 11% after 30, under 1% after 62, and roughly eight parts per billion after 250.
That is where the familiar advice to load a year of data before trusting an RSI comes from. StockCharts states that a formula "will need at least 250 data points to replicate our RSI numbers" and that "RSI values may differ based on the total calculation period", and AAII writes that "the ending value will be dependent on how far back the data is initially referencing for its first calculation". There is also a second definition in circulation: Cutler's RSI uses a simple moving average of gains and losses precisely to remove that dependence, and it agrees with Wilder's version at bar 14 before drifting away from it.
The practical consequence is that a backtester which starts computing at the first bar of your test window hands you a stretch of early signals built on an indicator that has not settled. If you are comparing platforms, that is the question worth asking first, and it is covered alongside the nine platforms in the best RSI backtesting software for swing traders.
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 the RSI backtest bench, 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.