SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · NZ

Mainfreight Limited backtest

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

Data 2000-01-04 ~ 2026-09-30daily bars 6,764 (26.7 years)Costs 0.5%Venue NZXMonthly snapshot 2026-09-30

Results by strategy

2 of 10 beat buy and hold (CAGR 14.1%, drawdown -59.5%).

Sharpe leader (same as main): EMA 크로스오버 — CAGR 14.9%, MDD -39.2%, Sharpe 0.88, 66% exposure.

CAGR reference leader: SMA 크로스오버 — CAGR 15.0%, MDD -35.6%, exposure 65%.

Return/drawdown alternative: SMA 크로스오버 — CAGR is 0.9%p higher than buy and hold, while drawdown improves by 20.4%p (CAGR 15.0%, MDD -35.6%, 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=47, slow=159
14.9%-39.2%0.880.3841.1x2766%
SMA 크로스오버
fast=42, slow=198
15.0%-35.6%0.870.4242.2x3165%
Donchian 채널 돌파
entryN=115, exitN=71
13.9%-42.3%0.850.3332.7x2759%
ROC 모멘텀
n=167, threshold=0.07
12.4%-39.8%0.800.3122.5x11855%
Keltner 채널 돌파
emaPeriod=58, atrPeriod=21, mult=4
9.1%-30.5%0.700.3010.4x6840%
볼린저 밴드 돌파
n=59, k=1.6
9.3%-43.2%0.660.2210.7x10247%
Supertrend
period=26, mult=4.1
10.4%-52.2%0.630.2014.0x13763%
ADX / DI 방향성
period=37, threshold=10
8.6%-37.6%0.570.239.1x21457%
Parabolic SAR
step=0.005, maxStep=0.2
6.3%-57.3%0.420.115.1x18858%
MACD
fast=17, slow=50, signal=18
-0.0%-58.4%0.08-0.001.0x33048%
Buy and hold14.1%-59.5%0.640.2433.6x1100%
1x 10x 2001 2005 2009 2013 2017 2021 2025 SMA 크로스오버EMA 크로스오버Buy and hold
EMA 크로스오버 (Sharpe leader), SMA 크로스오버 (CAGR reference), Buy and hold.
0% -15% -30% -45% -60% 2001 2005 2009 2013 2017 2021 2025 Buy and holdSMA 크로스오버EMA 크로스오버
EMA 크로스오버 maximum drawdown -39.2% (2006-11-30 → 2009-09-02), recovered after 1,480 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 NZ assetsAll asset reports

Read next