SPY golden cross backtest: the 50/200 moving average, 2020 to 2024.
We ran the golden cross rule (50 day average against 200 day average) on SPDR S&P 500 ETF through Candlo Academy's backtest engine, starting with $10,000. It made money. Buy and hold made more.
| Strategy | Return | End value | Trades | Sharpe |
|---|---|---|---|---|
| 50/200 moving average | +52.60% | $15,260.04 | 5 | 0.59 |
| Buy and hold | +78.71% | $17,871.35 | 1 | 0.67 |
The rule finished 26.11 percentage points behind buy and hold. It was in cash about 23% of the time.
- The rule
- Hold it while its 50 day average is above its 200 day average, so buy on the golden cross and sell on the death cross. Hold cash otherwise. The signal is read at the close and the fill happens at the next day's open.
- What it did
- The rule made 5 trades and was in cash for 426 of 1,825 calendar days, about 23%. It sold at $260.43 in Mar 2020 and bought back at $314.47 in Jul 2020, higher than it sold. It sold at $419.56 in Mar 2022 and bought back at $411.80 in Feb 2023, lower than it sold.
- Costs in the test
- Every fill moves 5 basis points against you (0.05%). Returns are price returns, so dividends are not counted for either line. No commission or taxes are modelled.
- What this does not show
- One fund and one five year window. A different ticker or period can reverse the order, so do not read this as a general result about moving averages.
Every fill
| Date | Side | Price |
|---|---|---|
| 2020-01-02 | Buy | $323.70 |
| 2020-03-31 | Sell | $260.43 |
| 2020-07-10 | Buy | $314.47 |
| 2022-03-15 | Sell | $419.56 |
| 2023-02-03 | Buy | $411.80 |
Hypothetical backtest, not a record of real trades. Prices are split adjusted. Past results do not predict future results. For education only, not financial advice. Other tickers are on the backtests page, and what a paper fill costs in each market is on the fees page.