Strategies › Moving average crossover
Moving average crossover
Follow the trend: be invested when the average of the last 20 closes is above that of the last 100, and in cash otherwise.
The exact rules
- If the 20-day moving average is above the 100-day moving average, target 100% of the portfolio in BTC.
- Otherwise, hold everything in cash.
A decision made at a day's close is executed at the next day's open. Fees of 0.10% and slippage of 0.05% on every order.
| Short average (days) | 20 |
| Long average (days) | 100 |
What you should know
- Averages react late: the strategy buys after a rise has started and sells after a fall has started.
- In a market without a trend, crossovers multiply and fees add up.
Results from January 1, 2021 to November 21, 2026
| Moving average crossover | HODL | Monthly DCA | |
|---|---|---|---|
| Final value | $25,543 | $20,686 | $13,951 |
| Annual return | +17.3% | +13.1% | +5.8% |
| Max drawdown | -43.1% | -76.7% | -50.9% |
| Sharpe | 0.59 | 0.50 | 0.34 |
| Time invested | 53.8% | 100.0% | 100.0% |
| Number of orders | 28 | 1 | 71 |
| Fees and slippage paid | $931 | $15 | $15 |
Depending on the start date
The same backtest, rerun starting on January 1 of each year, always up to November 21, 2026. The strategy beats HODL for 3 start dates out of 5.
| Start | Moving average crossover | HODL | Monthly DCA | Beats HODL | Beats DCA |
|---|---|---|---|---|---|
| January 1, 2021 | $25,543 | $20,686 | $13,951 | yes | yes |
| January 1, 2022 | $16,774 | $12,976 | $13,957 | yes | yes |
| January 1, 2023 | $19,583 | $36,291 | $11,749 | no | yes |
| January 1, 2024 | $12,507 | $14,196 | $8,047 | no | yes |
| January 1, 2025 | $7,867 | $6,426 | $7,090 | yes | yes |
Starting with $10,000, fees of 0.10% and slippage of 0.05% per order, also applied to HODL and DCA.
Past performance is no guarantee of future results. Ratiqen is an analysis tool and does not provide investment advice.
Data: BTC/USD, Bitstamp, daily UTC candles up to November 21, 2026. Data version 2026-11-21.58be4ea3, engine 0.2.0.