Skip to content
The Casebook · A classic strategy

Cumulative 2-day RSI dip buy in uptrends, exit above 65

Cumulative RSI: buy when the sum of the last two 2-day RSI readings is below 35 and the stock is above its 200-day average; exit when the 2-day RSI goes above 65.
VerdictTested Nov 22, 2026

Loses money

After costs it lost money on the stocks that decide the verdict.

  • −0.055R a trade after costs on the laggard stocks.
Trades on the laggards
4,204

42 large US stocks, 15 years

Per trade, after costs
−0.055R

Before costs +0.015R

Bar to clear
t > 2.01

By trade and by day, sized to a first try

What the numbers say

On the laggard stocks, 4204 trades averaged −0.055R after costs (about 0.016R before costs), so costs account for the gap. In bull markets the average was −0.065R, close to the −0.0611R from random dates, and it beat only 30% of random draws. Winners averaged 0.008R.

How it was tested

Buy a stock in a long-term uptrend when the sum of today's and yesterday's 2-day RSI is below 35, and exit when the 2-day RSI rises above 65.

Side
Long
Its own exit
Exit at the close of the first day after entry on which RSI(2) is above 65., checked at each close
Time limit
Exit at the close after 30 trading days, unless the stop, the target or its own exit comes first
Bar to clear
t > 2.01, by trade and by day, sized to a first try (one idea, tested once)
Prices
15 years of daily bars through 2026-11-20; judged 2026-11-22
Choices made where the idea was open
  • RSI(2) is Wilder-smoothed RSI with a 2-day period computed on daily closes
  • 'Sum of the last two readings' means RSI(2) on the signal day plus RSI(2) on the prior day
  • '200-day average' means the 200-day simple moving average of closes
  • Entry is at the signal-day close
  • The stated exit is the RSI exit rule, so the stop and target are wide protective choices (4 x ATR(14) stop, 8 x ATR(14) target)
  • Time limit set to the 30-day maximum since the idea names no hold limit

The evidence

The laggards decide: 22 large stocks that lagged or fell, where hindsight can't flatter a rule. Today's winners sit beside them to show what survivorship would add.

MarketTradesPer tradet, by tradet, by dayRandom datesWinners, per trade
Bull3,215−0.065R−9.89−8.03 · 1,461d−0.061R · beats 30%−0.001R
Flat729−0.008R−0.51−0.56 · 322d−0.041R · beats 90%+0.052R
Bear260−0.069R−2.82−1.75 · 122d−0.060R · beats 45%−0.025R
All4,204−0.055R−0.058R+0.008R

R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 14.7 bps) plus 0.045R for the fills a real order wouldn't get. “By day” groups trades opened the same day, so a rule that fires on the same dates for every stock counts as a few events. “Random dates” places the same plan on random days of the same stocks in the same kind of market, 20 times; the idea must beat 95% of those draws.

The scanner we wroteShow the code
from decimal import Decimal

from core.domain import Bar
from strategies.indicators import atr, sma
from scanners.base import Candidate


def _wilder_rsi_series(closes, period):
    n = len(closes)
    out = [None] * n
    if n < period + 1:
        return out
    gains = []
    losses = []
    for i in range(1, n):
        ch = closes[i] - closes[i - 1]
        gains.append(ch if ch > 0 else 0.0)
        losses.append(-ch if ch < 0 else 0.0)
    avg_g = sum(gains[:period]) / period
    avg_l = sum(losses[:period]) / period

    def val(g, l):
        if l == 0:
            return 50.0 if g == 0 else 100.0
        rs = g / l
        return 100.0 - 100.0 / (1.0 + rs)

    out[period] = val(avg_g, avg_l)
    for i in range(period + 1, n):
        g = gains[i - 1]
        l = losses[i - 1]
        avg_g = (avg_g * (period - 1) + g) / period
        avg_l = (avg_l * (period - 1) + l) / period
        out[i] = val(avg_g, avg_l)
    return out


class CumulativeRsi2OversoldAbove200Sma:
    name = "cumulative_rsi2_oversold_above_200sma"
    description = "Long when RSI(2) today plus yesterday is below 35 and close is above the 200-day SMA; exit when RSI(2) exceeds 65."

    def __init__(self, rsi_period: int = 2, sum_threshold: float = 35.0, exit_rsi: float = 65.0,
                 sma_period: int = 200, atr_period: int = 14,
                 stop_mult: float = 4.0, target_mult: float = 8.0) -> None:
        self._rsi_period = rsi_period
        self._sum_threshold = sum_threshold
        self._exit_rsi = exit_rsi
        self._sma_period = sma_period
        self._atr_period = atr_period
        self._stop_mult = stop_mult
        self._target_mult = target_mult

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        if len(bars) < self._sma_period + 2:
            return None
        closes_f = [float(b.close) for b in bars]
        series = _wilder_rsi_series(closes_f, self._rsi_period)
        r_today = series[-1]
        r_prev = series[-2]
        if r_today is None or r_prev is None:
            return None
        if r_today + r_prev >= self._sum_threshold:
            return None
        sma_val = sma([b.close for b in bars], self._sma_period)
        if sma_val is None:
            return None
        current = bars[-1]
        if current.close <= Decimal(str(sma_val)):
            return None
        atr_val = atr(bars, self._atr_period)
        if atr_val is None or atr_val <= 0:
            return None
        atr_dec = Decimal(str(atr_val))
        entry = current.close
        stop = entry - Decimal(str(self._stop_mult)) * atr_dec
        target = entry + Decimal(str(self._target_mult)) * atr_dec
        if stop <= 0 or not (stop < entry < target):
            return None
        rr = (target - entry) / (entry - stop)
        return Candidate(
            ticker=ticker,
            side="buy",
            entry=entry,
            stop=stop,
            target=target,
            risk_reward_ratio=rr.quantize(Decimal("0.01")),
            signal_strength=50,
            thesis=f"RSI(2) sum {r_today + r_prev:.1f} < {self._sum_threshold} while close is above the {self._sma_period}-day SMA.",
        )

    def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal,
                 side: str, bars_held: int) -> bool:
        if len(bars) < self._rsi_period + 1:
            return False
        series = _wilder_rsi_series([float(b.close) for b in bars], self._rsi_period)
        r = series[-1]
        if r is None:
            return False
        return r > self._exit_rsi

Hypothetical results from our own backtest of the rule as restated, on 42 large US stocks over 15 years. Past performance, real or simulated, does not predict future results. Research and education only; not investment advice.

Have an idea of your own?

Describe it in plain words and get the same honest test in about a minute.

Run the Gauntlet
Cumulative 2-day RSI dip buy in uptrends, exit above 65: Loses money · EdgeProven