Skip to content
The Casebook · A classic strategy

Golden cross, 50/200-day

Buy when the 50-day moving average crosses above the 200-day moving average (golden cross) and sell when it crosses back below.
VerdictTested Nov 22, 2026

Loses money

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

  • −0.048R a trade after costs on the laggard stocks.
Trades on the laggards
251

42 large US stocks, 15 years

Per trade, after costs
−0.048R

Before costs +0.006R

Bar to clear
t > 2.01

By trade and by day, sized to a first try

What the numbers say

Across 251 trades on the laggard stocks, the result was −0.048R a trade after costs; before costs it was roughly flat. It did worse in bull (−0.057R) and bear (−0.124R) markets, and beat only 20% and 5% of random-date draws there. Flat markets were the only positive stretch (0.016R), too small to offset it, hence the verdict.

How it was tested

Buy at the close when the 50-day simple moving average crosses above the 200-day, and exit when it crosses back 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
Choices made where the idea was open
  • Moving averages are simple (SMA) on daily closes
  • Golden cross means SMA(50) strictly above SMA(200) today after being at or below yesterday
  • Sell on the reverse cross: SMA(50) strictly below SMA(200) after being at or above the day before
  • The idea names no stop or target, so a wide 20% stop and 100% target are protective choices only
  • Hold limit is capped at the 30-trading-day maximum, so trades not crossed back by then exit at the close of day 30
  • The harness window of 300 bars gives 200-day SMA enough history for the cross to be computed

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
Bull182−0.057R−1.74−1.69 · 174d−0.017R · beats 20%+0.072R
Flat49+0.016R0.250.32 · 47d−0.038R · beats 70%+0.010R
Bear20−0.124R−1.50−1.11 · 18d+0.064R · beats 5%+0.056R
All251−0.048R−0.014R+0.057R

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.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 code
from decimal import Decimal

from core.domain import Bar
from scanners.base import Candidate


class GoldenCross50200Long:
    name = "golden_cross_50_200_sma_long"
    description = "Long when SMA(50) crosses above SMA(200); exit on death cross."

    def __init__(self, fast: int = 50, slow: int = 200, stop_pct: float = 0.20, target_pct: float = 1.00) -> None:
        self._fast = fast
        self._slow = slow
        self._stop_pct = stop_pct
        self._target_pct = target_pct

    @staticmethod
    def _sma_at(bars, period, end):
        # SMA of closes over bars[end-period:end]
        if end < period or end > len(bars):
            return None
        total = Decimal(0)
        for b in bars[end - period:end]:
            total += Decimal(str(b.close))
        return total / Decimal(period)

    def _cross_state(self, bars):
        n = len(bars)
        if n < self._slow + 1:
            return None
        f_now = self._sma_at(bars, self._fast, n)
        s_now = self._sma_at(bars, self._slow, n)
        f_prev = self._sma_at(bars, self._fast, n - 1)
        s_prev = self._sma_at(bars, self._slow, n - 1)
        if None in (f_now, s_now, f_prev, s_prev):
            return None
        return f_now, s_now, f_prev, s_prev

    def scan(self, ticker: str, bars: list[Bar]) -> Candidate | None:
        st = self._cross_state(bars)
        if st is None:
            return None
        f_now, s_now, f_prev, s_prev = st
        if not (f_now > s_now and f_prev <= s_prev):
            return None
        entry = bars[-1].close
        stop = entry * (Decimal(1) - Decimal(str(self._stop_pct)))
        target = entry * (Decimal(1) + Decimal(str(self._target_pct)))
        if 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="SMA(50) crossed above SMA(200) (golden cross) at the latest close.",
        )

    def exit_now(self, ticker: str, bars: list[Bar], entry: Decimal, side: str, bars_held: int) -> bool:
        st = self._cross_state(bars)
        if st is None:
            return False
        f_now, s_now, f_prev, s_prev = st
        return f_now < s_now and f_prev >= s_prev

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
Golden cross, 50/200-day: Loses money · EdgeProven