Buy 20% above the 200-day average, hold 20 days
Buy stocks trading more than 20% above their 200-day moving average and hold them for 20 days.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.074R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.002R
By trade and by day, sized to a first try
What the numbers say
On the laggard stocks, 335 trades averaged −0.074R after costs, against −0.0018R before costs. In bull markets (293 trades) the result was −0.111R, and none of the random-date draws were beaten. Flat (0.179R) and bear (0.233R) markets were positive but rested on 36 and 6 trades.
How it was tested
Go long at the close when a stock closes more than 20% above its 200-day simple moving average, and hold for 20 trading days.
- Side
- Long
- Time limit
- Exit at the close after 20 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
- Trend filter uses a simple (not exponential) 200-day moving average of closes.
- Signal triggers on the first close above the threshold; no re-entry while a position is open.
- The idea names no stop or target, so a wide 3 x ATR(14) stop and a 2R target are chosen as protection around the 20-day time exit.
- Entry is at the close of the signal day, as the harness requires.
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 | 293 | −0.111R | −1.69 | −1.45 · 270d | −0.020R · beats 0% | +0.022R |
| Flat | 36 | +0.179R | 0.90 | 0.76 · 33d | −0.057R · beats 95% | −0.184R |
| Bear | 6 | +0.233R | 0.68 | 0.68 · 6d | +0.021R · beats 70% | +0.292R |
| All | 335 | −0.074R | −0.023R | +0.007R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 13.1 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, sma
from scanners.base import Candidate
class Close20PctAbove200DmaFirstCross:
name = "close_20pct_above_200dma_first_cross_hold20"
description = "First close more than 20% above the 200-day SMA; long with 3x ATR stop and 6x ATR target."
def __init__(self, sma_period: int = 200, threshold: float = 1.20, atr_period: int = 14, stop_mult: float = 3.0, target_mult: float = 6.0) -> None:
self._sma_period = sma_period
self._threshold = threshold
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 + 1:
return None
closes = [b.close for b in bars]
sma_now = sma(closes, self._sma_period)
sma_prev = sma(closes[:-1], self._sma_period)
if sma_now is None or sma_prev is None:
return None
thr = Decimal(str(self._threshold))
level_now = thr * Decimal(str(sma_now))
level_prev = thr * Decimal(str(sma_prev))
current = bars[-1]
if current.close <= level_now:
return None
# first-cross: yesterday's close was not above yesterday's threshold
if closes[-2] > level_prev:
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
risk = entry - stop
if risk <= 0 or stop <= 0:
return None
rr = (target - entry) / risk
return Candidate(
ticker=ticker,
side="buy",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=50,
thesis="First close more than 20% above the 200-day SMA; hold up to 20 days with ATR-based stop and 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.