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.5%, MDD -48.7%).

Data 2000-01-04 ~ 2026-07-31daily bars 6,608 (26.6 years)Costs 0.5%Venue TWSEMonthly snapshot 2026-07-31

Results by strategy

5 of 10 beat buy and hold (CAGR -0.3%, 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.9%p higher than buy and hold, while drawdown improves by 20.2%p (CAGR 1.5%, 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.0x16638%
Supertrend
period=40, mult=4.5
1.5%-48.7%0.180.031.5x10041%
Keltner 채널 돌파
emaPeriod=51, atrPeriod=22, mult=1.6
1.5%-57.6%0.180.031.5x14835%
SMA 크로스오버
fast=48, slow=93
0.8%-58.4%0.150.011.2x7349%
EMA 크로스오버
fast=26, slow=88
0.1%-56.9%0.120.001.0x7747%
Donchian 채널 돌파
entryN=21, exitN=59
-0.9%-61.6%0.10-0.020.8x9369%
ADX / DI 방향성
period=26, threshold=15
-0.8%-47.0%0.06-0.020.8x19732%
MACD
fast=16, slow=58, signal=19
-2.3%-78.7%0.03-0.030.5x26852%
ROC 모멘텀
n=61, threshold=0.07
-1.5%-67.8%0.03-0.020.7x30731%
Parabolic SAR
step=0.02, maxStep=0.28
-7.3%-94.1%-0.19-0.080.1x50451%
Buy and hold-0.3%-72.5%0.17-0.000.9x1100%
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 selected on the same full-history sample using sharpe over 40 trials per strategy, so results contain in-sample bias. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-run the same setupAll asset reports

Read next