Does timing the market beat buying and holding?
A popular rule says: own a stock only while its 50-day average price is above its 200-day average (a "golden cross"), and sit in cash otherwise. The idea is to dodge big crashes. Test it yourself on 10 years of real prices.
How it works
- Moving average: the average closing price over the last N trading days. It smooths out daily noise.
- The rule: when the fast average is above the slow one, own the stock. Otherwise hold cash (earning nothing here).
- No peeking: a signal seen at today's close is acted on starting tomorrow.
- Fair start: both strategies start on the same day with $1,000.
- Not modeled: trading fees, taxes, interest on cash, or slippage. Prices include dividends.