SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · TW

Compal Electronics, Inc. backtest

10 trend-following strategies were compared on the full daily history of Compal Electronics, Inc.. 5 beat buy-and-hold CAGR; 볼린저 밴드 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Supertrend (CAGR 1.2%, MDD -48.7%).

Data 2000-01-04 ~ 2026-08-31daily bars 6,629 (26.7 years)Costs 0.5%Venue TWSEMonthly snapshot 2026-08-31

Results by strategy

5 of 10 beat buy and hold (CAGR 0.1%, drawdown -72.5%).

Sharpe leader (same as main): 볼린저 밴드 돌파 — CAGR 2.6%, MDD -52.3%, Sharpe 0.23, 38% exposure.

Return/drawdown alternative: Supertrend — CAGR is 2.5%p higher than buy and hold, while drawdown improves by 20.2%p (CAGR 1.2%, MDD -48.7%, exposure 41%).

The alternative must retain 75% of buy-and-hold CAGR, improve drawdown by at least 20% and 5 percentage points, and stay below 95% exposure; the ranking weights return retention 60% and drawdown improvement 40%.

Strategy · parametersCAGRMDDSharpeCalmarTotalTradesExposure
볼린저 밴드 돌파
n=43, k=1.2
2.6%-52.3%0.230.052.0x16738%
Keltner 채널 돌파
emaPeriod=51, atrPeriod=22, mult=1.6
1.5%-57.6%0.180.031.5x14936%
SMA 크로스오버
fast=48, slow=93
1.3%-58.4%0.170.021.4x7349%
Supertrend
period=40, mult=4.5
1.2%-48.7%0.170.021.4x10141%
EMA 크로스오버
fast=26, slow=88
0.5%-56.9%0.140.011.1x7747%
Donchian 채널 돌파
entryN=21, exitN=59
-0.5%-61.6%0.12-0.010.9x9369%
ADX / DI 방향성
period=26, threshold=15
-0.3%-47.0%0.08-0.010.9x19732%
ROC 모멘텀
n=61, threshold=0.07
-1.1%-67.8%0.05-0.020.8x30831%
MACD
fast=16, slow=58, signal=19
-2.3%-78.7%0.03-0.030.5x26952%
Parabolic SAR
step=0.02, maxStep=0.28
-7.2%-94.1%-0.18-0.080.1x50651%
Buy and hold0.1%-72.5%0.180.001.0x1100%
1x 2001 2005 2009 2013 2017 2021 2025 볼린저 밴드 돌파Buy and hold
볼린저 밴드 돌파: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -18% -36% -54% -73% 2001 2005 2009 2013 2017 2021 2025 Buy and hold볼린저 밴드 돌파
볼린저 밴드 돌파 maximum drawdown -52.3% (2010-01-18 → 2020-11-12), prior peak not yet recovered.

Rules of the top strategy

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

Method and caveats

Past performance does not guarantee future returns. Parameters were carried forward from the latest full optimization and replayed on this monthly dataset. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-optimize the same period and setupMore TW assetsAll asset reports

Read next