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-08 Daily bars 6,670 (26.7y) Costs 0.5%Venue Korea Exchange

Results by strategy

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

Strategy · parametersCAGRMax drawdown SharpeCalmarTotal return TradesTime in market
SMA crossover
fast=21, slow=45
14.1%-40.1% 0.630.3534.0x 14456%
MACD
fast=43, slow=127, signal=36
13.9%-39.0% 0.640.3632.2x 11452%
Donchian channel breakout
entryN=29, exitN=58
12.7%-55.1% 0.560.2324.5x 7068%
EMA crossover
fast=56, slow=83
12.2%-44.9% 0.560.2721.5x 5561%
Bollinger band breakout
n=203, k=1.5
11.5%-44.1% 0.580.2618.3x 3345%
Supertrend
period=21, mult=5
9.1%-59.2% 0.480.1510.2x 8850%
Keltner channel breakout
emaPeriod=136, atrPeriod=47, mult=4
9.1%-39.6% 0.510.2310.2x 4840%
Parabolic SAR
step=0.005, maxStep=0.02
8.2%-64.3% 0.430.138.2x 13455%
ROC momentum
n=105, threshold=0.09
6.0%-50.1% 0.370.124.7x 25941%
ADX / DI directional
period=34, threshold=20
5.5%-43.6% 0.430.134.2x 3612%
Buy & hold15.2%-64.8% 0.570.2343.9x 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 -40.1% (2002-04-24 peak → 2003-04-02 trough) · recovered after 728 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
14.1%
Max drawdown
-40.1%
Sharpe
0.63
Trades
144
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.9%
Max drawdown
-39.0%
Sharpe
0.64
Trades
114
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.7%
Max drawdown
-55.1%
Sharpe
0.56
Trades
70
Time in market
68%
Win rate
51%

EMA crossover

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

CAGR
12.2%
Max drawdown
-44.9%
Sharpe
0.56
Trades
55
Time in market
61%
Win rate
51%

Bollinger band breakout

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

CAGR
11.5%
Max drawdown
-44.1%
Sharpe
0.58
Trades
33
Time in market
45%
Win rate
52%

Supertrend

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

CAGR
9.1%
Max drawdown
-59.2%
Sharpe
0.48
Trades
88
Time in market
50%
Win rate
51%

Keltner channel breakout

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

CAGR
9.1%
Max drawdown
-39.6%
Sharpe
0.51
Trades
48
Time in market
40%
Win rate
52%

Parabolic SAR

Trades around the Parabolic SAR dots that accelerate toward price.

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

ROC momentum

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

CAGR
6.0%
Max drawdown
-50.1%
Sharpe
0.37
Trades
259
Time in market
41%
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.5%
Max drawdown
-43.6%
Sharpe
0.43
Trades
36
Time in market
12%
Win rate
51%
Backtest Samsung Electronics yourselfSet up live trading

Read next