Trend-Following Backtester · Guide · backtest 한국어
equity · CA
Canadian National Railway Company backtest
10 trend-following strategies were compared on the full daily history of Canadian National Railway Company. 0 beat buy-and-hold CAGR; SMA 크로스오버 ranks first by Sharpe, matching the main backtester.
Results by strategy
0 of 10 beat buy and hold (CAGR 13.4%, drawdown -38.3%).
Sharpe leader (same as main): SMA 크로스오버 — CAGR 8.5%, MDD -46.2%, Sharpe 0.53, 69% exposure.
No strategy retained at least 75% of buy-and-hold CAGR while reducing drawdown by both 20% relatively and 5 percentage points absolutely.
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 |
|---|---|---|---|---|---|---|---|
| SMA 크로스오버 fast=54, slow=168 |
8.5% | -46.2% | 0.53 | 0.18 | 11.3x | 41 | 69% |
| Donchian 채널 돌파 entryN=87, exitN=62 |
7.1% | -36.4% | 0.50 | 0.20 | 7.7x | 43 | 59% |
| EMA 크로스오버 fast=52, slow=106 |
6.6% | -45.4% | 0.44 | 0.15 | 6.7x | 51 | 72% |
| ROC 모멘텀 n=131, threshold=-0.04 |
4.2% | -61.9% | 0.31 | 0.07 | 3.4x | 217 | 78% |
| Supertrend period=14, mult=3.9 |
3.4% | -51.0% | 0.28 | 0.07 | 2.7x | 141 | 61% |
| ADX / DI 방향성 period=33, threshold=19 |
1.7% | -29.0% | 0.23 | 0.06 | 1.6x | 75 | 19% |
| Keltner 채널 돌파 emaPeriod=51, atrPeriod=19, mult=4 |
1.8% | -34.0% | 0.23 | 0.05 | 1.7x | 61 | 23% |
| 볼린저 밴드 돌파 n=54, k=2.2 |
1.6% | -40.5% | 0.19 | 0.04 | 1.6x | 106 | 35% |
| MACD fast=15, slow=37, signal=15 |
-0.3% | -66.7% | 0.06 | -0.00 | 0.9x | 425 | 49% |
| Parabolic SAR step=0.005, maxStep=0.12 |
-0.8% | -76.5% | 0.04 | -0.01 | 0.8x | 279 | 56% |
| Buy and hold | 13.4% | -38.3% | 0.64 | 0.35 | 41.3x | 1 | 100% |
Rules of the top strategy
When the short average rises above the long average, it reads that as an uptrend starting.
- Buy — Buy when the 54-day average price crosses above the 168-day average
- Sell — Sell (to cash) when the 54-day average falls below the 168-day average