SleepWell Trade

Trend-Following Backtester · Guide · Assets 한국어

Assets

Bitcoin backtest

The largest crypto asset by market cap. Its moves are violent and its trends run long, which makes it the textbook proving ground for trend following.

Data 2017-09-25 ~ 2026-09-19 Daily bars 3,266 (9.0y) Costs 0.5%Venue Upbit (KRW)

Results by strategy

10 of 10 beat buy and hold (CAGR 43.5%, drawdown -86.8%). Sorted by CAGR.

Strategy · parametersCAGRMax drawdown SharpeCalmarTotal return TradesTime in market
Bollinger band breakout
n=38, k=1.6
84.3%-41.2% 1.752.05243.0x 5740%
EMA crossover
fast=4, slow=29
74.9%-54.8% 1.511.37151.3x 12351%
SMA crossover
fast=1, slow=31
73.1%-49.0% 1.491.49138.3x 19752%
Keltner channel breakout
emaPeriod=38, atrPeriod=25, mult=2.3
72.7%-37.5% 1.631.94135.5x 4735%
Supertrend
period=7, mult=2.2
72.2%-42.9% 1.491.68132.0x 10549%
Parabolic SAR
step=0.01, maxStep=0.16
70.6%-44.1% 1.471.60121.5x 16151%
ROC momentum
n=34, threshold=0.12
66.6%-54.8% 1.521.2197.9x 11531%
ADX / DI directional
period=24, threshold=9
66.0%-53.3% 1.431.2495.1x 13148%
Donchian channel breakout
entryN=36, exitN=7
60.1%-39.3% 1.461.5368.6x 6431%
MACD
fast=9, slow=30, signal=14
55.9%-58.9% 1.250.9554.0x 17852%
Buy & hold43.5%-86.8% 0.900.5025.6x 1100%
1x 10x 100x 2018 2020 2022 2024 2026 Bollinger band breakoutBuy & hold
Bollinger band breakout (solid) vs buy and hold (dashed). Log scale.
0% -22% -43% -65% -87% 2018 2020 2022 2024 2026 Buy & holdBollinger band breakout
Bollinger band breakout maximum drawdown -41.2% (2018-01-05 peak → 2019-03-04 trough) · recovered after 489 days. Buy and hold uses the same scale.
Parameters were optimized over the full history. The same data chose them and scored them, so these run above live results. With two or three parameters the distortion is bounded, but read them as a relative ranking, not a return target. Settings match the backtester's defaults (0.5% costs, Sharpe objective, 120 trials). More in optimization and overfitting.

The rules, strategy by strategy

Bollinger band breakout

Breaking above the upper band (average plus a multiple of volatility) signals a strong move up.

CAGR
84.3%
Max drawdown
-41.2%
Sharpe
1.75
Trades
57
Time in market
40%
Win rate
54%

EMA crossover

Uses two exponential averages (more weight on recent prices) and trades their crossover.

CAGR
74.9%
Max drawdown
-54.8%
Sharpe
1.51
Trades
123
Time in market
51%
Win rate
53%

SMA crossover

When the short average rises above the long average, it reads that as an uptrend starting.

CAGR
73.1%
Max drawdown
-49.0%
Sharpe
1.49
Trades
197
Time in market
52%
Win rate
51%

Keltner channel breakout

Breaking above the channel top (average plus a multiple of volatility) signals an upside breakout.

CAGR
72.7%
Max drawdown
-37.5%
Sharpe
1.63
Trades
47
Time in market
35%
Win rate
54%

Supertrend

Trades the direction of a volatility-based trend line that trails below/above price.

CAGR
72.2%
Max drawdown
-42.9%
Sharpe
1.49
Trades
105
Time in market
49%
Win rate
52%

Parabolic SAR

Trades around the Parabolic SAR dots that accelerate toward price.

CAGR
70.6%
Max drawdown
-44.1%
Sharpe
1.47
Trades
161
Time in market
51%
Win rate
52%

ROC momentum

Rides the trend when recent return (momentum) over a window is above a threshold.

CAGR
66.6%
Max drawdown
-54.8%
Sharpe
1.52
Trades
115
Time in market
31%
Win rate
52%

ADX / DI directional

Looks at both the direction and the strength of the trend; holds only in a strong uptrend.

CAGR
66.0%
Max drawdown
-53.3%
Sharpe
1.43
Trades
131
Time in market
48%
Win rate
52%

Donchian channel breakout

A new high means a trend starting; a new low means it’s over (turtle-trading style).

CAGR
60.1%
Max drawdown
-39.3%
Sharpe
1.46
Trades
64
Time in market
31%
Win rate
54%

MACD

Looks at the gap (MACD) between a short and long average crossing its own signal line.

CAGR
55.9%
Max drawdown
-58.9%
Sharpe
1.25
Trades
178
Time in market
52%
Win rate
49%
Backtest Bitcoin yourselfSet up live trading

Read next