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-08-25 Daily bars 11,517 (45.7y) Costs 0.5%Venue Nasdaq

Results by strategy

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

Strategy · parametersCAGRMax drawdown SharpeCalmarTotal return TradesTime in market
Donchian channel breakout
entryN=19, exitN=26
20.1%-53.6% 0.740.374287.1x 21164%
Supertrend
period=26, mult=3.4
18.1%-55.7% 0.720.332038.6x 28057%
EMA crossover
fast=3, slow=130
17.5%-79.3% 0.680.221615.4x 23764%
SMA crossover
fast=6, slow=80
17.2%-73.8% 0.670.231439.5x 25361%
Parabolic SAR
step=0.005, maxStep=0.04
17.2%-63.7% 0.690.271420.3x 30857%
Bollinger band breakout
n=38, k=1.5
16.2%-64.8% 0.710.25957.7x 30245%
ROC momentum
n=39, threshold=-0.04
15.9%-83.2% 0.610.19857.9x 56170%
Keltner channel breakout
emaPeriod=43, atrPeriod=16, mult=2.8
12.5%-55.1% 0.630.23215.3x 20237%
ADX / DI directional
period=40, threshold=15
11.2%-48.9% 0.600.23128.1x 19830%
MACD
fast=16, slow=58, signal=23
10.1%-65.5% 0.480.1582.9x 45452%
Buy & hold18.6%-82.2% 0.610.232402.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 -53.6% (1994-10-26 peak → 1997-07-24 trough) · recovered after 1,351 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.1%
Max drawdown
-53.6%
Sharpe
0.74
Trades
211
Time in market
64%
Win rate
51%

Supertrend

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

CAGR
18.1%
Max drawdown
-55.7%
Sharpe
0.72
Trades
280
Time in market
57%
Win rate
51%

EMA crossover

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

CAGR
17.5%
Max drawdown
-79.3%
Sharpe
0.68
Trades
237
Time in market
64%
Win rate
51%

SMA crossover

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

CAGR
17.2%
Max drawdown
-73.8%
Sharpe
0.67
Trades
253
Time in market
61%
Win rate
51%

Parabolic SAR

Trades around the Parabolic SAR dots that accelerate toward price.

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

Bollinger band breakout

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

CAGR
16.2%
Max drawdown
-64.8%
Sharpe
0.71
Trades
302
Time in market
45%
Win rate
51%

ROC momentum

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

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

Keltner channel breakout

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

CAGR
12.5%
Max drawdown
-55.1%
Sharpe
0.63
Trades
202
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
11.2%
Max drawdown
-48.9%
Sharpe
0.60
Trades
198
Time in market
30%
Win rate
51%

MACD

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

CAGR
10.1%
Max drawdown
-65.5%
Sharpe
0.48
Trades
454
Time in market
52%
Win rate
50%
Backtest Apple (AAPL) yourselfSet up live trading

Read next