Skip to content
Menu

Golden cross on SPY

Buy when SMA (50) is above SMA (200). Sell when SMA (50) crosses below SMA (200).

Started from the “Golden cross” template. A template is a well-known idea to test, not a recommendation.

Buy when

Open a position when

Sell when

Close it when

Assumptions 10,000 to start · 0.05% cost per trade · fills at the next open
This rule
+10.0%
10,000 became 10,998
Buy and hold SPY
+21.4%
10,000 became 12,139
Worst fall
−11.5%
−1,348 · not recovered by the end
Trades
1
1 won · 0 lost · 1 still open · 100% win rate
Profit factor
—
gains ÷ losses
In the market
60%
of 500 days
  • Only 1 trade. A handful of trades says little about a rule: a few lucky or unlucky ones decide the result. Thirty or more is a common minimum; a longer period gives more.
  • Buying and holding did better. Over the same dates, simply holding SPY returned 11 percentage points more than this rule after costs.

Account value

10,000 following this rule, beside the same cash bought and held, Nov 29, 2024 to Nov 27, 2026

10k12k−10.0%0%Fall from the peakNov 24Apr 25Sep 25Feb 26Jul 26Nov 26

Transactions chart

Buy and cover markers below the bar, sell and short markers above

500.0600.0700.010.0k11.0kAccount valueNov 24Apr 25Sep 25Feb 26Jul 26Nov 26

Trades

1 round trip, oldest first. Each is an entry and its exit, after costs.

Backtest trades
SideEntryExitSharesHeldProfitReturnWorst / best
LongSep 18, 2025 · 661.89 SMA (50) is above SMA (200)Nov 27, 2026 · 728.32 Still open15.1300 days+998.14+9.98%−4.9% / +18.1%

Return and risk

This rule beside buying and holding over the same dates

MeasureThis ruleBuy and hold
Total return+10.0%+21.4%
Return per year+4.9%+10.2%
Volatility per year11.4%17.5%
Worst fall from a peak−11.5%−19.0%
Longest time below a peak78 days128 days
Sharpe ratio0.480.64
Sortino ratio0.670.94
Return per year ÷ worst fall0.430.54

Trade statistics

Round trips for the long side, the short side and both together

Backtest results by side
StatisticLongShortTotal
Trades101
Won101
Lost000
Win rate100%—100%
Net profit+998.14—+998.14
Profit factor———
Average trade+998.14—+998.14
Average trade return+9.98%—+9.98%
Average win998.14—998.14
Average loss———
Average win ÷ average loss———
Largest win998.14—998.14
Largest loss———
Most losses in a row000
Average days held300.0—300.0

Does it hold up on the last part?

The last 30% of the period, from Apr 27, 2026, is shaded on the chart and counted apart. A rule that only worked earlier was probably fitted to the past.

PartThis ruleBuy and holdTrades
First 70%+7.8%+19.0%1
Last 30%+2.0%+2.0%0

Monthly returns

This rule, month by month. The last column is buying and holding for the same year.

YearJanFebMarAprMayJunJulAugSepOctNovDecYearHold
20261.5-0.9-5.210.55.3-1.30.02.7-0.6-0.9-3.6+6.8%+6.8%
20250.00.00.00.00.00.00.00.00.62.40.2-0.2+3.0%+16.4%
20240.00.00.0%−2.3%

What this result assumes

  • Account. Starts with 10,000 in cash, 100% of the account on each entry, one position at a time. Fractional shares are allowed.
  • Fills. A signal is read at a bar’s close and fills at the next bar’s open.
  • Costs. 0.05% of the amount traded on every buy and every sell, for commission and slippage. This run paid 5.00 in all.
  • Exits. The exit condition closes the position. A position still open at the end is valued at the last close.
  • Signals. 302 in this period. Studies are calculated on the bars before the period as well, so they are warmed up when it starts.
  • Prices. 500 daily bars, adjusted for splits. Dividends are not included, for this rule or for buying and holding.
  • Buy and hold. The same cash put into SPY at the first bar’s open, one cost, never sold.

These results are hypothetical. They come from applying a rule to past prices under the assumptions above, with the benefit of hindsight, and are not a record of real trading. Real orders can fill at other prices or not at all. Past results do not predict future results, and nothing here is investment advice. The Stock Master app calculates backtests differently, so its numbers will not match these.