Trend-Following Backtester · Guide · backtest 한국어

equity · NZ

Mainfreight Limited backtest

10 trend-following strategies were compared on the full daily history of Mainfreight Limited. 3 beat buy-and-hold CAGR; EMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is EMA 크로스오버 (CAGR 15.4%, MDD -37.5%).

Data 2000-01-04 ~ 2026-07-30daily bars 6,720 (26.6 years)Costs 0.5%Venue NZXMonthly snapshot 2026-07-31

Results by strategy

3 of 10 beat buy and hold (CAGR 14.4%, drawdown -59.5%).

Sharpe leader (same as main): EMA 크로스오버 — CAGR 15.4%, MDD -37.5%, Sharpe 0.91, 65% exposure.

Return/drawdown alternative: EMA 크로스오버 — CAGR is 1.0%p higher than buy and hold, while drawdown improves by 22.0%p (CAGR 15.4%, MDD -37.5%, exposure 65%).

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=52, slow=152
15.4%-37.5%0.910.4144.6x2565%
SMA 크로스오버
fast=38, slow=212
15.0%-38.3%0.880.3941.2x3365%
Donchian 채널 돌파
entryN=56, exitN=77
14.7%-40.4%0.820.3638.1x3371%
ROC 모멘텀
n=167, threshold=0.07
12.4%-39.8%0.810.3122.5x11855%
Keltner 채널 돌파
emaPeriod=85, atrPeriod=25, mult=3.2
10.8%-30.1%0.750.3615.3x6949%
볼린저 밴드 돌파
n=58, k=1.6
9.4%-38.9%0.670.2410.8x10547%
Supertrend
period=26, mult=4.1
10.6%-52.2%0.640.2014.7x13763%
ADX / DI 방향성
period=30, threshold=20
5.8%-34.6%0.530.174.5x10230%
Parabolic SAR
step=0.005, maxStep=0.3
6.5%-57.3%0.430.115.3x18758%
MACD
fast=15, slow=53, signal=38
2.3%-45.8%0.210.051.8x24350%
Buy and hold14.4%-59.5%0.650.2435.3x1100%
1x 10x 2001 2005 2009 2013 2017 2021 2025 EMA 크로스오버Buy and hold
EMA 크로스오버: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -15% -30% -45% -60% 2001 2005 2009 2013 2017 2021 2025 Buy and holdEMA 크로스오버
EMA 크로스오버 maximum drawdown -37.5% (2006-11-30 → 2009-09-02), recovered after 1,477 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 40 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 setupAll asset reports

Read next