SleepWell Trade

Trend-Following Backtester · Guide · Assets 한국어

Assets

Apple (AAPL) backtest

Over forty years of daily bars, spanning several crashes and recoveries — enough history to see how a strategy behaves when things break.

Data 1980-12-12 ~ 2026-09-18 Daily bars 11,534 (45.8y) Costs 0.5%Venue Nasdaq

Results by strategy

1 of 10 beat buy and hold (CAGR 18.8%, drawdown -82.2%). Sorted by CAGR.

Strategy · parametersCAGRMax drawdown SharpeCalmarTotal return TradesTime in market
Donchian channel breakout
entryN=32, exitN=49
20.5%-72.6% 0.730.285141.8x 11370%
MACD
fast=17, slow=124, signal=39
18.6%-52.9% 0.730.352441.6x 29753%
Supertrend
period=21, mult=3.3
18.2%-56.6% 0.720.322073.4x 29557%
EMA crossover
fast=3, slow=137
17.9%-78.2% 0.690.231859.4x 22764%
Bollinger band breakout
n=127, k=1.5
17.2%-68.8% 0.720.251454.6x 9349%
Parabolic SAR
step=0.005, maxStep=0.04
17.2%-63.7% 0.680.271409.5x 30957%
SMA crossover
fast=6, slow=81
16.9%-74.1% 0.660.231289.6x 25562%
Keltner channel breakout
emaPeriod=110, atrPeriod=28, mult=3.5
16.2%-60.0% 0.710.27979.7x 11347%
ROC momentum
n=39, threshold=-0.04
16.1%-83.2% 0.620.19930.4x 56170%
ADX / DI directional
period=93, threshold=5
14.0%-81.1% 0.600.17407.9x 30555%
Buy & hold18.8%-82.2% 0.620.232605.1x 1100%
1x 10x 100x 1,000x 1981 1987 1993 1999 2005 2011 2017 2023 Donchian channel breakoutBuy & hold
Donchian channel breakout (solid) vs buy and hold (dashed). Log scale.
0% -21% -41% -62% -82% 1981 1987 1993 1999 2005 2011 2017 2023 Buy & holdDonchian channel breakout
Donchian channel breakout maximum drawdown -72.6% (2000-03-22 peak → 2003-04-14 trough) · recovered after 1,713 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

Donchian channel breakout

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

CAGR
20.5%
Max drawdown
-72.6%
Sharpe
0.73
Trades
113
Time in market
70%
Win rate
52%

MACD

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

CAGR
18.6%
Max drawdown
-52.9%
Sharpe
0.73
Trades
297
Time in market
53%
Win rate
51%

Supertrend

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

CAGR
18.2%
Max drawdown
-56.6%
Sharpe
0.72
Trades
295
Time in market
57%
Win rate
51%

EMA crossover

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

CAGR
17.9%
Max drawdown
-78.2%
Sharpe
0.69
Trades
227
Time in market
64%
Win rate
51%

Bollinger band breakout

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

CAGR
17.2%
Max drawdown
-68.8%
Sharpe
0.72
Trades
93
Time in market
49%
Win rate
52%

Parabolic SAR

Trades around the Parabolic SAR dots that accelerate toward price.

CAGR
17.2%
Max drawdown
-63.7%
Sharpe
0.68
Trades
309
Time in market
57%
Win rate
51%

SMA crossover

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

CAGR
16.9%
Max drawdown
-74.1%
Sharpe
0.66
Trades
255
Time in market
62%
Win rate
51%

Keltner channel breakout

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

CAGR
16.2%
Max drawdown
-60.0%
Sharpe
0.71
Trades
113
Time in market
47%
Win rate
52%

ROC momentum

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

CAGR
16.1%
Max drawdown
-83.2%
Sharpe
0.62
Trades
561
Time in market
70%
Win rate
50%

ADX / DI directional

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

CAGR
14.0%
Max drawdown
-81.1%
Sharpe
0.60
Trades
305
Time in market
55%
Win rate
51%
Backtest Apple (AAPL) yourselfSet up live trading

Read next