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

Data 1991-12-04 ~ 2026-07-31daily bars 8,725 (34.7 years)Costs 0.5%Venue XNASMonthly snapshot 2026-07-31

Results by strategy

5 of 10 beat buy and hold (CAGR 5.7%, drawdown -92.3%).

Sharpe leader (same as main): ADX / DI 방향성 — CAGR 4.9%, MDD -29.2%, Sharpe 0.48, 6% exposure.

CAGR reference leader: SMA 크로스오버 — CAGR 10.0%, MDD -73.5%, exposure 50%.

Return/drawdown alternative: ADX / DI 방향성 — CAGR is 0.9%p lower than buy and hold, while drawdown improves by 63.0%p (CAGR 4.9%, MDD -29.2%, exposure 6%).

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
ADX / DI 방향성
period=16, threshold=42
4.9%-29.2%0.480.175.2x446%
SMA 크로스오버
fast=70, slow=135
10.0%-73.5%0.450.1426.8x6150%
Donchian 채널 돌파
entryN=117, exitN=104
7.5%-71.6%0.390.1012.1x3346%
EMA 크로스오버
fast=56, slow=160
6.9%-77.1%0.370.0910.1x4751%
Keltner 채널 돌파
emaPeriod=79, atrPeriod=11, mult=3.2
5.8%-70.2%0.360.087.1x7429%
Supertrend
period=19, mult=5
6.1%-78.3%0.350.087.9x8152%
볼린저 밴드 돌파
n=40, k=3.5
2.8%-31.5%0.280.092.6x3810%
Parabolic SAR
step=0.01, maxStep=0.32
1.5%-76.1%0.210.021.7x40351%
ROC 모멘텀
n=96, threshold=0
-1.8%-95.2%0.11-0.020.5x41350%
MACD
fast=16, slow=31, signal=14
-10.4%-98.6%-0.14-0.110.0x50851%
Buy and hold5.7%-92.3%0.360.066.9x1100%
1x 10x 1992 1997 2002 2007 2012 2017 2022 SMA 크로스오버ADX / DI 방향성Buy and hold
ADX / DI 방향성 (Sharpe leader), SMA 크로스오버 (CAGR reference), Buy and hold.
0% -23% -46% -69% -92% 1992 1997 2002 2007 2012 2017 2022 Buy and holdSMA 크로스오버ADX / DI 방향성
ADX / DI 방향성 maximum drawdown -29.2% (1992-02-18 → 1995-05-12), recovered after 3,982 days.

Rules of the top strategy

Looks at both the direction and the strength of the trend; holds only in a strong uptrend.

Method and caveats

Past performance does not guarantee future returns. Parameters were carried forward from the latest full optimization and replayed on this monthly dataset. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-optimize the same period and setupAll asset reports

Read next