SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · US

Sanmina Corporation backtest

10 trend-following strategies were compared on the full daily history of Sanmina Corporation. 3 beat buy-and-hold CAGR; Supertrend ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Supertrend (CAGR 14.1%, MDD -66.3%).

Data 1993-04-14 ~ 2026-09-30daily bars 8,424 (33.5 years)Costs 0.5%Venue XNASMonthly snapshot 2026-09-30

Results by strategy

3 of 10 beat buy and hold (CAGR 12.6%, drawdown -99.7%).

Sharpe leader (same as main): Supertrend — CAGR 14.1%, MDD -66.3%, Sharpe 0.53, 54% exposure.

Return/drawdown alternative: Supertrend — CAGR is 1.5%p higher than buy and hold, while drawdown improves by 33.3%p (CAGR 14.1%, MDD -66.3%, 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=14, mult=3
14.1%-66.3%0.530.2183.0x21554%
EMA 크로스오버
fast=40, slow=196
13.1%-70.2%0.510.1961.0x3559%
Donchian 채널 돌파
entryN=11, exitN=71
12.7%-97.2%0.490.1354.4x10384%
SMA 크로스오버
fast=47, slow=203
12.2%-87.0%0.490.1446.8x4358%
ROC 모멘텀
n=147, threshold=-0.04
12.0%-82.5%0.480.1544.8x20163%
Keltner 채널 돌파
emaPeriod=74, atrPeriod=14, mult=3.7
6.8%-47.0%0.370.149.0x8632%
Parabolic SAR
step=0.015, maxStep=0.06
5.8%-84.1%0.340.076.5x44754%
ADX / DI 방향성
period=45, threshold=12
5.8%-82.2%0.340.076.6x17434%
볼린저 밴드 돌파
n=43, k=0.7
3.2%-88.3%0.270.042.9x33350%
MACD
fast=30, slow=34, signal=21
2.3%-94.6%0.270.022.2x32353%
Buy and hold12.6%-99.7%0.500.1353.0x1100%
1x 10x 100x 1994 1999 2004 2009 2014 2019 2024 SupertrendBuy and hold
Supertrend: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -25% -50% -75% -100% 1994 1999 2004 2009 2014 2019 2024 Buy and holdSupertrend
Supertrend maximum drawdown -66.3% (2000-07-20 → 2002-11-11), recovered after 1,154 days.

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 120 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 US assetsAll asset reports

Read next