Trend-Following Backtester · Guide · backtest 한국어

equity · US

Shopify Inc. backtest

10 trend-following strategies were compared on the full daily history of Shopify Inc.. 1 beat buy-and-hold CAGR; SMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is ROC 모멘텀 (CAGR 45.5%, MDD -46.4%).

Data 2015-05-20 ~ 2026-07-31daily bars 2,816 (11.2 years)Costs 0.5%Venue XNASMonthly snapshot 2026-07-31

Results by strategy

1 of 10 beat buy and hold (CAGR 45.9%, drawdown -84.8%).

Sharpe leader (same as main): SMA 크로스오버 — CAGR 47.2%, MDD -51.7%, Sharpe 1.07, 75% exposure.

Return/drawdown alternative: ROC 모멘텀 — CAGR is 1.3%p higher than buy and hold, while drawdown improves by 33.1%p (CAGR 45.5%, MDD -46.4%, exposure 78%).

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
SMA 크로스오버
fast=58, slow=270
47.2%-51.7%1.070.9175.8x675%
ROC 모멘텀
n=191, threshold=-0.02
45.5%-46.4%1.030.9866.6x4078%
EMA 크로스오버
fast=40, slow=203
43.4%-46.3%1.030.9456.7x874%
Donchian 채널 돌파
entryN=62, exitN=72
37.8%-55.8%0.980.6836.1x1668%
볼린저 밴드 돌파
n=57, k=1.5
24.1%-48.1%0.840.5011.2x4945%
Supertrend
period=26, mult=4.9
26.0%-56.6%0.820.4613.3x3755%
ADX / DI 방향성
period=28, threshold=39
4.4%-6.6%0.790.661.6x22%
Keltner 채널 돌파
emaPeriod=46, atrPeriod=28, mult=2.3
18.0%-42.4%0.680.426.4x5844%
MACD
fast=18, slow=47, signal=18
5.9%-71.8%0.340.081.9x13152%
Parabolic SAR
step=0.02, maxStep=0.36
2.1%-82.5%0.260.031.3x26356%
Buy and hold45.9%-84.8%0.920.5468.7x1100%
1x 10x 100x 2016 2018 2020 2022 2024 2026 SMA 크로스오버Buy and hold
SMA 크로스오버: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -21% -42% -64% -85% 2016 2018 2020 2022 2024 2026 Buy and holdSMA 크로스오버
SMA 크로스오버 maximum drawdown -51.7% (2021-11-19 → 2022-01-27), recovered after 738 days.

Rules of the top strategy

When the short average rises above the long average, it reads that as an uptrend starting.

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