Short on 20/50-day bearish cross below the 200-day
Short when the 20-day moving average crosses below the 50-day and the price is below the 200-day.
Loses money
After costs it lost money on the stocks that decide the verdict.
- −0.153R a trade after costs on the laggard stocks.
42 large US stocks, 15 years
Before costs −0.073R
By trade and by day, sized to a first try
What the numbers say
On 449 laggard-stock trades the result was −0.153R a trade after costs (−0.073R before costs). The 20 winners did worse, at −0.313R. Bull markets scored −0.168R, flat −0.114R and bear −0.146R, so no market type came out positive.
How it was tested
Short a stock when its 20-day moving average crosses below its 50-day moving average while the close is below the 200-day moving average.
- Side
- Short
- Its own exit
- Exit at the close if SMA(20) closes back above SMA(50) after entry., 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
- Moving averages are simple moving averages of the daily close
- The cross is the day SMA20 first closes below SMA50 after being at or above it
- Entry is at the close of the signal day
- The idea named no stop or target, so a 2 x ATR(14) stop and a target at twice the risk were chosen
- The idea named no exit, so an exit when SMA20 closes back above SMA50 and a 30-day time limit were added
- Price below the 200-day means the close is below SMA(200)
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 | 281 | −0.168R | −2.27 | −1.72 · 252d | −0.139R · beats 25% | −0.457R |
| Flat | 98 | −0.114R | −0.87 | −0.64 · 81d | −0.112R · beats 45% | −0.403R |
| Bear | 70 | −0.146R | −0.96 | −1.08 · 60d | −0.236R · beats 70% | +0.136R |
| All | 449 | −0.153R | −0.148R | −0.313R |
R is the result per trade in units of the risk taken (entry to stop). Costs are each stock's own trading spread (median 10.4 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 ShortMa20CrossBelowMa50Under200:
name = "short_ma20_cross_below_ma50_under_ma200"
description = "Short when SMA20 crosses below SMA50 while close is below SMA200"
def __init__(self, fast: int = 20, slow: int = 50, trend: int = 200, atr_period: int = 14, stop_mult: float = 2.0, target_mult: float = 4.0) -> None:
self._fast = fast
self._slow = slow
self._trend = trend
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._trend + 1:
return None
closes = [b.close for b in bars]
fast_now = sma(closes, self._fast)
slow_now = sma(closes, self._slow)
fast_prev = sma(closes[:-1], self._fast)
slow_prev = sma(closes[:-1], self._slow)
trend_now = sma(closes, self._trend)
if None in (fast_now, slow_now, fast_prev, slow_prev, trend_now):
return None
if not (Decimal(str(fast_prev)) >= Decimal(str(slow_prev)) and Decimal(str(fast_now)) < Decimal(str(slow_now))):
return None
current = bars[-1]
if current.close >= Decimal(str(trend_now)):
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 target <= 0:
return None
risk = stop - entry
if risk <= 0:
return None
rr = (entry - target) / risk
return Candidate(
ticker=ticker,
side="sell",
entry=entry,
stop=stop,
target=target,
risk_reward_ratio=rr.quantize(Decimal("0.01")),
signal_strength=50,
thesis="SMA20 crossed below SMA50 with close below SMA200; short with 2 ATR stop and 4 ATR target.",
)
def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal, side: str, bars_held: int) -> bool:
closes = [b.close for b in bars]
fast_now = sma(closes, self._fast)
slow_now = sma(closes, self._slow)
if fast_now is None or slow_now is None:
return False
return Decimal(str(fast_now)) > Decimal(str(slow_now))
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.