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

Results by strategy

2 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=15, exitN=49
21.4%-71.0% 0.730.307080.0x 14178%
MACD
fast=41, slow=122, signal=16
18.7%-53.8% 0.740.352539.6x 29453%
Supertrend
period=26, mult=3.4
18.1%-55.7% 0.720.332038.6x 28057%
Keltner channel breakout
emaPeriod=154, atrPeriod=8, mult=1.3
17.8%-81.8% 0.700.221782.0x 16961%
Bollinger band breakout
n=135, k=1.5
17.3%-70.6% 0.720.251497.5x 8749%
Parabolic SAR
step=0.005, maxStep=0.04
17.2%-63.7% 0.690.271420.3x 30857%
EMA crossover
fast=4, slow=135
17.1%-84.2% 0.670.201382.2x 20964%
SMA crossover
fast=12, slow=43
15.8%-70.7% 0.630.22829.2x 28858%
ADX / DI directional
period=97, threshold=5
14.0%-82.3% 0.600.17406.5x 29355%
ROC momentum
n=53, threshold=0.06
13.6%-62.9% 0.600.22346.4x 54949%
Buy & hold18.6%-82.2% 0.610.232479.8x 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 -71.0% (1983-06-06 peak → 1985-10-04 trough) · recovered after 1,348 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
21.4%
Max drawdown
-71.0%
Sharpe
0.73
Trades
141
Time in market
78%
Win rate
51%

MACD

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

CAGR
18.7%
Max drawdown
-53.8%
Sharpe
0.74
Trades
294
Time in market
53%
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%

Keltner channel breakout

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

CAGR
17.8%
Max drawdown
-81.8%
Sharpe
0.70
Trades
169
Time in market
61%
Win rate
52%

Bollinger band breakout

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

CAGR
17.3%
Max drawdown
-70.6%
Sharpe
0.72
Trades
87
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.69
Trades
308
Time in market
57%
Win rate
51%

EMA crossover

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

CAGR
17.1%
Max drawdown
-84.2%
Sharpe
0.67
Trades
209
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
15.8%
Max drawdown
-70.7%
Sharpe
0.63
Trades
288
Time in market
58%
Win rate
51%

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
-82.3%
Sharpe
0.60
Trades
293
Time in market
55%
Win rate
51%

ROC momentum

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

CAGR
13.6%
Max drawdown
-62.9%
Sharpe
0.60
Trades
549
Time in market
49%
Win rate
50%
Backtest Apple (AAPL) yourselfSet up live trading

Read next