Buy after a 20% drop when 14-day RSI crosses back above 30
Buy when the stock is down 20% from its 52-week high and the 14-day RSI crosses back above 30.
Indistinguishable from luck
It looks positive, but not more than chance would produce at this many tries, or than the same plan on random dates.
- Positive (+0.081R a trade), but no market clears t > 2.01 by trade and by day.
42 large US stocks, 15 years
Before costs +0.154R
By trade and by day, sized to a first try
What the numbers say
On the laggards it averaged 0.081R per trade after costs over 503 trades, against 0.059R on the winners. Bull markets were −0.038R. Bear markets were 0.221R (t 2.01 by trade, 2.62 by day) but beat only 70% of random-date draws. No market cleared the 2.01 bar on both counts, so the result is indistinguishable from luck.
How it was tested
Buy at the close when the stock is at least 20% below its 252-day high and RSI(14) crosses back above 30 from below.
- Side
- Long
- 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
- 52-week high = highest daily high over the last 252 trading days
- Down 20% means close is at least 20% below that 252-day high on the signal day
- RSI(14) uses Wilder smoothing on daily closes
- Crosses back above 30 means prior day RSI <= 30 and signal day RSI > 30
- Idea names no stop or target: used 2 x ATR(14) stop and a target at twice the risk
- Idea names no holding period: used the 30-day maximum time exit
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.
| Market | Trades | Per trade | t, by trade | t, by day | Random dates | Winners, per trade |
|---|---|---|---|---|---|---|
| Bull | 232 | −0.038R | −0.41 | −0.06 · 195d | −0.065R · beats 65% | +0.022R |
| Flat | 129 | +0.140R | 1.20 | 1.29 · 96d | −0.053R · beats 95% | +0.183R |
| Bear | 142 | +0.221R | 2.01 | 2.62 · 78d | +0.148R · beats 70% | +0.028R |
| All | 503 | +0.081R | −0.002R | +0.059R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 8.5 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 codeHide
from decimal import Decimal
from core.domain import Bar
from strategies.indicators import atr
from scanners.base import Candidate
class Drawdown20Rsi14Cross30Long:
name = "drawdown20_rsi14_cross30_long"
description = "Long when close is >=20% below 252-day high and RSI(14) crosses back above 30"
def __init__(self, dd_threshold: float = 0.20, rsi_period: int = 14, rsi_level: float = 30.0, high_lookback: int = 252, atr_period: int = 14, stop_atr: float = 2.0, target_atr: float = 4.0) -> None:
self._dd = dd_threshold
self._rsi_period = rsi_period
self._rsi_level = rsi_level
self._lookback = high_lookback
self._atr_period = atr_period
self._stop_atr = stop_atr
self._target_atr = target_atr
def _last_two_rsi(self, closes):
p = self._rsi_period
if len(closes) < p + 2:
return None, None
gains = []
losses = []
for i in range(1, len(closes)):
ch = closes[i] - closes[i - 1]
gains.append(max(ch, 0.0))
losses.append(max(-ch, 0.0))
avg_g = sum(gains[:p]) / p
avg_l = sum(losses[:p]) / p
def to_rsi(g, l):
if l == 0:
return 100.0 if g > 0 else 50.0
rs = g / l
return 100.0 - 100.0 / (1.0 + rs)
series = [to_rsi(avg_g, avg_l)]
for j in range(p, len(gains)):
avg_g = (avg_g * (p - 1) + gains[j]) / p
avg_l = (avg_l * (p - 1) + losses[j]) / p
series.append(to_rsi(avg_g, avg_l))
if len(series) < 2:
return None, None
return series[-2], series[-1]
def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
if len(bars) < self._lookback + 1:
return None
current = bars[-1]
high_n = max(b.high for b in bars[-self._lookback:])
if high_n <= 0:
return None
if current.close > Decimal("0.80") * high_n:
return None
closes = [float(b.close) for b in bars]
prev_rsi, cur_rsi = self._last_two_rsi(closes)
if prev_rsi is None or cur_rsi is None:
return None
if not (prev_rsi <= self._rsi_level and cur_rsi > self._rsi_level):
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_atr)) * atr_dec
target = entry + Decimal(str(self._target_atr)) * atr_dec
if stop <= 0:
return None
risk = entry - stop
if risk <= 0:
return None
rr = (target - entry) / risk
if rr < Decimal("1.5"):
return None
dd = float(1 - entry / high_n)
depth_score = min(40, max(0, int((dd - 0.20) * 100)))
cross_score = min(30, max(0, int((cur_rsi - self._rsi_level) * 6)))
rng = current.high - current.low
close_pos = float((current.close - current.low) / max(rng, Decimal("0.01")))
close_score = min(30, max(0, int(close_pos * 30)))
strength = max(0, min(100, depth_score + cross_score + close_score))
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=strength,
thesis=f"Close is {dd*100:.1f}% below the 252-day high and RSI(14) crossed back above 30 ({prev_rsi:.1f} -> {cur_rsi:.1f}); oversold mean-reversion bounce, 2xATR stop, 4xATR target.",
)
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.
Describe it in plain words and get the same honest test in about a minute.