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-08 Daily bars 3,255 (9.0y) Costs 0.5%Venue Upbit (KRW)

Results by strategy

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

Strategy · parametersCAGRMax drawdown SharpeCalmarTotal return TradesTime in market
Bollinger band breakout
n=38, k=1.6
83.3%-41.2% 1.742.02227.1x 5740%
Supertrend
period=1, mult=5
78.1%-60.6% 1.521.29175.8x 7753%
Keltner channel breakout
emaPeriod=32, atrPeriod=28, mult=2.3
74.8%-37.5% 1.671.99148.3x 4733%
SMA crossover
fast=1, slow=30
74.5%-46.7% 1.511.60145.9x 20352%
EMA crossover
fast=4, slow=29
74.1%-55.0% 1.501.35143.3x 12151%
Parabolic SAR
step=0.01, maxStep=0.2
67.2%-44.1% 1.421.5299.7x 16351%
ROC momentum
n=35, threshold=0.08
65.6%-61.2% 1.471.0791.6x 14537%
ADX / DI directional
period=24, threshold=12
64.9%-43.3% 1.431.5088.2x 12146%
Donchian channel breakout
entryN=40, exitN=8
59.1%-45.5% 1.451.3063.8x 5731%
MACD
fast=12, slow=32, signal=19
54.9%-61.0% 1.250.9050.3x 14753%
Buy & hold43.0%-86.8% 0.900.5024.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
83.3%
Max drawdown
-41.2%
Sharpe
1.74
Trades
57
Time in market
40%
Win rate
54%

Supertrend

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

CAGR
78.1%
Max drawdown
-60.6%
Sharpe
1.52
Trades
77
Time in market
53%
Win rate
53%

Keltner channel breakout

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

CAGR
74.8%
Max drawdown
-37.5%
Sharpe
1.67
Trades
47
Time in market
33%
Win rate
54%

SMA crossover

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

CAGR
74.5%
Max drawdown
-46.7%
Sharpe
1.51
Trades
203
Time in market
52%
Win rate
51%

EMA crossover

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

CAGR
74.1%
Max drawdown
-55.0%
Sharpe
1.50
Trades
121
Time in market
51%
Win rate
52%

Parabolic SAR

Trades around the Parabolic SAR dots that accelerate toward price.

CAGR
67.2%
Max drawdown
-44.1%
Sharpe
1.42
Trades
163
Time in market
51%
Win rate
51%

ROC momentum

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

CAGR
65.6%
Max drawdown
-61.2%
Sharpe
1.47
Trades
145
Time in market
37%
Win rate
51%

ADX / DI directional

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

CAGR
64.9%
Max drawdown
-43.3%
Sharpe
1.43
Trades
121
Time in market
46%
Win rate
52%

Donchian channel breakout

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

CAGR
59.1%
Max drawdown
-45.5%
Sharpe
1.45
Trades
57
Time in market
31%
Win rate
53%

MACD

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

CAGR
54.9%
Max drawdown
-61.0%
Sharpe
1.25
Trades
147
Time in market
53%
Win rate
50%
Backtest Bitcoin yourselfSet up live trading

Read next