Trend-Following Backtester · Guide · backtest 한국어
equity · US
The Hershey Company backtest
10 trend-following strategies were compared on the full daily history of The Hershey Company. 0 beat buy-and-hold CAGR; EMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is EMA 크로스오버 (CAGR 10.5%, MDD -40.5%).
Results by strategy
0 of 10 beat buy and hold (CAGR 11.9%, drawdown -53.9%).
Sharpe leader (same as main): EMA 크로스오버 — CAGR 10.5%, MDD -40.5%, Sharpe 0.59, 72% exposure.
Return/drawdown alternative: EMA 크로스오버 — CAGR is 1.4%p lower than buy and hold, while drawdown improves by 13.3%p (CAGR 10.5%, MDD -40.5%, exposure 72%).
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 |
|---|---|---|---|---|---|---|---|
| EMA 크로스오버 fast=74, slow=289 |
10.5% | -40.5% | 0.59 | 0.26 | 104.9x | 28 | 72% |
| SMA 크로스오버 fast=68, slow=346 |
10.4% | -40.5% | 0.59 | 0.26 | 98.5x | 26 | 70% |
| Donchian 채널 돌파 entryN=91, exitN=136 |
8.9% | -56.5% | 0.52 | 0.16 | 52.7x | 36 | 77% |
| ROC 모멘텀 n=142, threshold=-0.09 |
6.1% | -71.0% | 0.38 | 0.09 | 15.5x | 278 | 85% |
| Supertrend period=17, mult=4.9 |
4.5% | -55.3% | 0.35 | 0.08 | 7.9x | 146 | 57% |
| MACD fast=38, slow=57, signal=31 |
2.3% | -64.8% | 0.22 | 0.04 | 2.9x | 298 | 52% |
| 볼린저 밴드 돌파 n=77, k=2.7 |
1.9% | -44.7% | 0.21 | 0.04 | 2.4x | 104 | 29% |
| Keltner 채널 돌파 emaPeriod=55, atrPeriod=29, mult=2.5 |
1.5% | -46.0% | 0.17 | 0.03 | 2.0x | 212 | 40% |
| ADX / DI 방향성 period=33, threshold=19 |
0.6% | -53.1% | 0.11 | 0.01 | 1.3x | 154 | 22% |
| Parabolic SAR step=0.005, maxStep=0.1 |
-0.5% | -70.2% | 0.06 | -0.01 | 0.8x | 396 | 56% |
| Buy and hold | 11.9% | -53.9% | 0.58 | 0.22 | 185.9x | 1 | 100% |
Rules of the top strategy
Uses two exponential averages (more weight on recent prices) and trades their crossover.
- Buy — Buy when the 74-day EMA crosses above the 289-day EMA
- Sell — Sell when the 74-day EMA falls below the 289-day EMA