SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · TW

Shihlin Electric & Engineering Corp. backtest

10 trend-following strategies were compared on the full daily history of Shihlin Electric & Engineering Corp.. 2 beat buy-and-hold CAGR; Supertrend ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Supertrend (CAGR 9.7%, MDD -43.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

2 of 10 beat buy and hold (CAGR 7.9%, drawdown -67.3%).

Sharpe leader (same as main): Supertrend — CAGR 9.7%, MDD -43.7%, Sharpe 0.52, 54% exposure.

Return/drawdown alternative: Supertrend — CAGR is 1.8%p higher than buy and hold, while drawdown improves by 23.6%p (CAGR 9.7%, MDD -43.7%, exposure 54%).

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
Supertrend
period=13, mult=4.1
9.7%-43.7%0.520.2211.7x8654%
ROC 모멘텀
n=63, threshold=-0.13
8.3%-57.5%0.430.148.3x11588%
Parabolic SAR
step=0.005, maxStep=0.32
6.9%-53.5%0.410.135.8x17249%
Donchian 채널 돌파
entryN=15, exitN=49
7.2%-51.4%0.390.146.3x9377%
MACD
fast=19, slow=65, signal=19
6.4%-65.7%0.390.105.2x26647%
Keltner 채널 돌파
emaPeriod=31, atrPeriod=8, mult=3.8
3.8%-40.4%0.340.092.7x369%
ADX / DI 방향성
period=38, threshold=33
3.0%-33.1%0.320.092.2x84%
볼린저 밴드 돌파
n=39, k=3.4
3.8%-43.1%0.320.092.7x5614%
SMA 크로스오버
fast=21, slow=129
3.6%-48.2%0.270.072.5x8158%
EMA 크로스오버
fast=38, slow=166
2.9%-58.6%0.240.052.1x5764%
Buy and hold7.9%-67.3%0.400.127.5x1100%
1x 10x 2001 2005 2009 2013 2017 2021 2025 SupertrendBuy and hold
Supertrend: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -17% -34% -51% -67% 2001 2005 2009 2013 2017 2021 2025 Buy and holdSupertrend
Supertrend maximum drawdown -43.7% (2024-04-09 → 2025-03-04), prior peak not yet recovered.

Rules of the top strategy

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

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 setupMore TW assetsAll asset reports

Read next