RSI Trading Strategy: Rules, Backtesting, and How to Automate It
The Relative Strength Index (RSI) is the most-searched technical indicator for a reason: it is simple to read, easy to test, and forms the backbone of countless mean-reversion strategies. It is also widely misused.
This article covers what RSI measures, the standard rule set, what honest backtests tend to show, and how to automate it with proper risk controls.
What RSI measures
RSI compares the magnitude of recent gains to recent losses over a lookback window (14 periods by default) and squeezes the result into a 0–100 scale. Readings below 30 are conventionally called oversold; above 70, overbought. The insight is mean-reversion: an instrument that has fallen hard and fast is statistically more likely to bounce than to keep falling at the same rate — sometimes.
The classic rule set
A minimal RSI mean-reversion bot looks like this:
- +Signal: RSI(14) crosses below 30 → candidate long entry.
- +Filter: only during regular market hours; skip if average volume is thin.
- +Entry: market order on the next bar after the signal.
- +Exit: RSI crosses back above 50, OR a fixed take-profit, OR a stop-loss (typically 1–2 ATR below entry).
- +Risk: max 5% of equity per position, daily loss limit enforced.
What honest backtests show
On liquid large-caps and index ETFs, simple RSI mean-reversion has historically produced many small wins punctuated by occasional deep losers — the classic profile of a strategy that needs a stop-loss to be survivable. The parameters matter less than people think: RSI(14) with 30/70 bands and RSI(2) with 10/90 bands both "work" in some regimes and both bleed in strong trends. What separates a usable bot from a backtest fantasy is the exit and sizing logic, not the magic threshold.
Test across at least one full market cycle. An RSI dip-buyer tested only on 2023–2025 data has never met a real bear market, and its owner is in for a surprise.
Automating it without code
In the Argix Labs builder, this entire strategy is six blocks: a stock universe, an RSI signal, a market-hours filter, a market entry, a stop-loss + take-profit exit pair, and a risk-limit block — the platform will not let you deploy without one. Backtest it, paper trade it, and iterate on the exits before touching the signal. Most improvements to RSI strategies come from exiting better, not entering better.