SleepWell Trade

Trend-Following Backtester · Guide · Assets 한국어

Assets

Samsung Electronics backtest

Korea's largest listed company. It cycles over multi-year semiconductor swings, which is a useful stress test for long-horizon trend strategies.

Data 2000-01-04 ~ 2026-09-18 Daily bars 6,678 (26.7y) Costs 0.5%Venue Korea Exchange

Results by strategy

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

Strategy · parametersCAGRMax drawdown SharpeCalmarTotal return TradesTime in market
SMA crossover
fast=18, slow=43
15.1%-38.6% 0.660.3943.2x 15956%
MACD
fast=40, slow=156, signal=38
13.8%-33.3% 0.640.4131.3x 10452%
Donchian channel breakout
entryN=34, exitN=49
12.5%-46.4% 0.560.2723.2x 7063%
Bollinger band breakout
n=197, k=1.4
11.8%-42.9% 0.580.2819.7x 3746%
EMA crossover
fast=27, slow=44
10.9%-47.8% 0.520.2315.8x 10657%
Supertrend
period=40, mult=4.7
10.5%-57.3% 0.520.1814.3x 9652%
Keltner channel breakout
emaPeriod=151, atrPeriod=47, mult=3.7
9.5%-42.5% 0.520.2211.2x 5042%
Parabolic SAR
step=0.005, maxStep=0.02
8.0%-64.3% 0.430.137.9x 13555%
ROC momentum
n=79, threshold=0.07
5.4%-62.3% 0.340.094.1x 32043%
ADX / DI directional
period=44, threshold=25
5.0%-26.0% 0.440.193.7x 106%
Buy & hold15.1%-64.8% 0.570.2342.5x 1100%
1x 10x 2001 2005 2009 2013 2017 2021 2025 SMA crossoverBuy & hold
SMA crossover (solid) vs buy and hold (dashed). Log scale.
0% -16% -32% -49% -65% 2001 2005 2009 2013 2017 2021 2025 Buy & holdSMA crossover
SMA crossover maximum drawdown -38.6% (2006-01-31 peak → 2009-01-23 trough) · recovered after 1,301 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

SMA crossover

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

CAGR
15.1%
Max drawdown
-38.6%
Sharpe
0.66
Trades
159
Time in market
56%
Win rate
51%

MACD

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

CAGR
13.8%
Max drawdown
-33.3%
Sharpe
0.64
Trades
104
Time in market
52%
Win rate
51%

Donchian channel breakout

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

CAGR
12.5%
Max drawdown
-46.4%
Sharpe
0.56
Trades
70
Time in market
63%
Win rate
51%

Bollinger band breakout

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

CAGR
11.8%
Max drawdown
-42.9%
Sharpe
0.58
Trades
37
Time in market
46%
Win rate
52%

EMA crossover

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

CAGR
10.9%
Max drawdown
-47.8%
Sharpe
0.52
Trades
106
Time in market
57%
Win rate
51%

Supertrend

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

CAGR
10.5%
Max drawdown
-57.3%
Sharpe
0.52
Trades
96
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
9.5%
Max drawdown
-42.5%
Sharpe
0.52
Trades
50
Time in market
42%
Win rate
52%

Parabolic SAR

Trades around the Parabolic SAR dots that accelerate toward price.

CAGR
8.0%
Max drawdown
-64.3%
Sharpe
0.43
Trades
135
Time in market
55%
Win rate
50%

ROC momentum

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

CAGR
5.4%
Max drawdown
-62.3%
Sharpe
0.34
Trades
320
Time in market
43%
Win rate
49%

ADX / DI directional

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

CAGR
5.0%
Max drawdown
-26.0%
Sharpe
0.44
Trades
10
Time in market
6%
Win rate
52%
Backtest Samsung Electronics yourselfSet up live trading

Read next