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.

Try it in the lab

The exact rules

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

Results from January 1, 2021 to November 21, 2026

Beats HODL?
Yes
+48.6 pts of total return
Beats monthly DCA?
Yes
+115.9 pts of total return
Max drawdown
-43.1%
vs. -76.7% for HODL
$10,000$20,000202120222023202420252026
Moving average crossoverHODLMonthly DCALogarithmic scale
Moving average crossoverHODLMonthly 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%
Sharpe0.590.500.34
Time invested53.8%100.0%100.0%
Number of orders28171
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.

StartMoving average crossoverHODLMonthly DCABeats HODLBeats DCA
January 1, 2021$25,543$20,686$13,951yesyes
January 1, 2022$16,774$12,976$13,957yesyes
January 1, 2023$19,583$36,291$11,749noyes
January 1, 2024$12,507$14,196$8,047noyes
January 1, 2025$7,867$6,426$7,090yesyes

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.