Trend-Following Backtester · Guide · backtest 한국어
equity · US
Shopify Inc. backtest
10 trend-following strategies were compared on the full daily history of Shopify Inc.. 0 beat buy-and-hold CAGR; EMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is EMA 크로스오버 (CAGR 46.2%, MDD -41.6%).
Results by strategy
0 of 10 beat buy and hold (CAGR 48.1%, drawdown -84.8%).
Sharpe leader (same as main): EMA 크로스오버 — CAGR 46.2%, MDD -41.6%, Sharpe 1.06, 75% exposure.
Return/drawdown alternative: EMA 크로스오버 — CAGR is 2.0%p lower than buy and hold, while drawdown improves by 43.2%p (CAGR 46.2%, MDD -41.6%, exposure 75%).
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 |
|---|---|---|---|---|---|---|---|
| EMA 크로스오버 fast=67, slow=179 |
46.2% | -41.6% | 1.06 | 1.11 | 74.7x | 7 | 75% |
| SMA 크로스오버 fast=51, slow=202 |
46.1% | -47.8% | 1.05 | 0.96 | 74.1x | 11 | 74% |
| ROC 모멘텀 n=136, threshold=-0.03 |
42.3% | -48.2% | 1.00 | 0.88 | 55.2x | 65 | 75% |
| Donchian 채널 돌파 entryN=65, exitN=77 |
39.0% | -46.2% | 0.99 | 0.84 | 42.2x | 15 | 71% |
| Supertrend period=14, mult=5 |
31.0% | -53.5% | 0.89 | 0.58 | 21.5x | 35 | 59% |
| 볼린저 밴드 돌파 n=57, k=1.5 |
24.5% | -48.1% | 0.84 | 0.51 | 12.0x | 50 | 46% |
| ADX / DI 방향성 period=28, threshold=39 |
4.3% | -6.6% | 0.78 | 0.65 | 1.6x | 2 | 2% |
| Parabolic SAR step=0.01, maxStep=0.02 |
26.3% | -54.0% | 0.78 | 0.49 | 14.2x | 64 | 61% |
| Keltner 채널 돌파 emaPeriod=47, atrPeriod=15, mult=1.8 |
22.3% | -40.3% | 0.76 | 0.55 | 9.8x | 73 | 49% |
| MACD fast=18, slow=38, signal=21 |
10.0% | -64.5% | 0.44 | 0.16 | 3.0x | 124 | 52% |
| Buy and hold | 48.1% | -84.8% | 0.94 | 0.57 | 86.9x | 1 | 100% |
Rules of the top strategy
Uses two exponential averages (more weight on recent prices) and trades their crossover.
- Buy — Buy when the 67-day EMA crosses above the 179-day EMA
- Sell — Sell when the 67-day EMA falls below the 179-day EMA