Trend-Following Backtester · Guide · backtest 한국어
equity · US
John B. Sanfilippo & Son, Inc. backtest
10 trend-following strategies were compared on the full daily history of John B. Sanfilippo & Son, Inc.. 5 beat buy-and-hold CAGR; ADX / DI 방향성 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is ADX / DI 방향성 (CAGR 4.9%, MDD -25.9%).
Results by strategy
5 of 10 beat buy and hold (CAGR 5.0%, drawdown -92.3%).
Sharpe leader (same as main): ADX / DI 방향성 — CAGR 4.9%, MDD -25.9%, Sharpe 0.50, 5% exposure.
CAGR reference leader: SMA 크로스오버 — CAGR 9.3%, MDD -68.6%, exposure 50%.
Return/drawdown alternative: ADX / DI 방향성 — CAGR is 0.2%p lower than buy and hold, while drawdown improves by 66.3%p (CAGR 4.9%, MDD -25.9%, exposure 5%).
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 |
|---|---|---|---|---|---|---|---|
| ADX / DI 방향성 period=16, threshold=43 |
4.9% | -25.9% | 0.50 | 0.19 | 5.2x | 38 | 5% |
| SMA 크로스오버 fast=51, slow=150 |
9.3% | -68.6% | 0.44 | 0.14 | 21.9x | 56 | 50% |
| Keltner 채널 돌파 emaPeriod=56, atrPeriod=8, mult=3.9 |
5.5% | -55.5% | 0.39 | 0.10 | 6.4x | 54 | 18% |
| EMA 크로스오버 fast=51, slow=162 |
6.5% | -74.4% | 0.36 | 0.09 | 8.9x | 52 | 51% |
| Supertrend period=19, mult=5 |
5.8% | -78.3% | 0.34 | 0.07 | 7.2x | 82 | 52% |
| Donchian 채널 돌파 entryN=119, exitN=74 |
5.4% | -68.6% | 0.33 | 0.08 | 6.2x | 42 | 41% |
| 볼린저 밴드 돌파 n=68, k=2.4 |
4.8% | -72.5% | 0.32 | 0.07 | 5.2x | 80 | 27% |
| Parabolic SAR step=0.01, maxStep=0.12 |
1.8% | -77.5% | 0.22 | 0.02 | 1.9x | 396 | 51% |
| ROC 모멘텀 n=114, threshold=0.11 |
-0.7% | -91.5% | 0.11 | -0.01 | 0.8x | 308 | 36% |
| MACD fast=26, slow=56, signal=23 |
-5.4% | -97.4% | 0.01 | -0.06 | 0.1x | 304 | 51% |
| Buy and hold | 5.0% | -92.3% | 0.35 | 0.05 | 5.5x | 1 | 100% |
Rules of the top strategy
Looks at both the direction and the strength of the trend; holds only in a strong uptrend.
- Buy — Buy when up-direction (+DI) beats down-direction (−DI) and trend strength (ADX, 16-day) is ≥ 43
- Sell — Sell when direction flips or the trend weakens (ADX < 43)