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%).
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 · parameters | CAGR | MDD | Sharpe | Calmar | Total | Trades | Exposure |
|---|---|---|---|---|---|---|---|
| Supertrend period=14, mult=3 |
14.1% | -66.3% | 0.53 | 0.21 | 83.0x | 215 | 54% |
| EMA 크로스오버 fast=40, slow=196 |
13.1% | -70.2% | 0.51 | 0.19 | 61.0x | 35 | 59% |
| Donchian 채널 돌파 entryN=11, exitN=71 |
12.7% | -97.2% | 0.49 | 0.13 | 54.4x | 103 | 84% |
| SMA 크로스오버 fast=47, slow=203 |
12.2% | -87.0% | 0.49 | 0.14 | 46.8x | 43 | 58% |
| ROC 모멘텀 n=147, threshold=-0.04 |
12.0% | -82.5% | 0.48 | 0.15 | 44.8x | 201 | 63% |
| Keltner 채널 돌파 emaPeriod=74, atrPeriod=14, mult=3.7 |
6.8% | -47.0% | 0.37 | 0.14 | 9.0x | 86 | 32% |
| Parabolic SAR step=0.015, maxStep=0.06 |
5.8% | -84.1% | 0.34 | 0.07 | 6.5x | 447 | 54% |
| ADX / DI 방향성 period=45, threshold=12 |
5.8% | -82.2% | 0.34 | 0.07 | 6.6x | 174 | 34% |
| 볼린저 밴드 돌파 n=43, k=0.7 |
3.2% | -88.3% | 0.27 | 0.04 | 2.9x | 333 | 50% |
| MACD fast=30, slow=34, signal=21 |
2.3% | -94.6% | 0.27 | 0.02 | 2.2x | 323 | 53% |
| Buy and hold | 12.6% | -99.7% | 0.50 | 0.13 | 53.0x | 1 | 100% |
Rules of the top strategy
Trades the direction of a volatility-based trend line that trails below/above price.
- Buy — Buy when price moves above the trend line (flips up) — 14-day volatility, 3× band
- Sell — Sell when price drops below the trend line (flips down)