SleepWell Trade

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%).

Data 1980-03-17 ~ 2026-09-30daily bars 11,730 (46.5 years)Costs 0.5%Venue XNYSMonthly snapshot 2026-09-30

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 · parametersCAGRMDDSharpeCalmarTotalTradesExposure
EMA 크로스오버
fast=74, slow=289
10.5%-40.5%0.590.26104.9x2872%
SMA 크로스오버
fast=68, slow=346
10.4%-40.5%0.590.2698.5x2670%
Donchian 채널 돌파
entryN=91, exitN=136
8.9%-56.5%0.520.1652.7x3677%
ROC 모멘텀
n=142, threshold=-0.09
6.1%-71.0%0.380.0915.5x27885%
Supertrend
period=17, mult=4.9
4.5%-55.3%0.350.087.9x14657%
MACD
fast=38, slow=57, signal=31
2.3%-64.8%0.220.042.9x29852%
볼린저 밴드 돌파
n=77, k=2.7
1.9%-44.7%0.210.042.4x10429%
Keltner 채널 돌파
emaPeriod=55, atrPeriod=29, mult=2.5
1.5%-46.0%0.170.032.0x21240%
ADX / DI 방향성
period=33, threshold=19
0.6%-53.1%0.110.011.3x15422%
Parabolic SAR
step=0.005, maxStep=0.1
-0.5%-70.2%0.06-0.010.8x39656%
Buy and hold11.9%-53.9%0.580.22185.9x1100%
1x 10x 100x 1981 1987 1993 1999 2005 2011 2017 2023 EMA 크로스오버Buy and hold
EMA 크로스오버: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -13% -27% -40% -54% 1981 1987 1993 1999 2005 2011 2017 2023 Buy and holdEMA 크로스오버
EMA 크로스오버 maximum drawdown -40.5% (1987-10-07 → 1987-10-19), recovered after 1,209 days.

Rules of the top strategy

Uses two exponential averages (more weight on recent prices) and trades their crossover.

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