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.1%, drawdown -38.3%).
Sharpe leader (same as main): SMA 크로스오버 — CAGR 8.5%, MDD -36.7%, 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=64, slow=174 |
8.5% | -36.7% | 0.53 | 0.23 | 11.5x | 39 | 69% |
| Donchian 채널 돌파 entryN=100, exitN=62 |
6.3% | -37.5% | 0.46 | 0.17 | 6.2x | 43 | 58% |
| EMA 크로스오버 fast=52, slow=103 |
6.3% | -44.2% | 0.43 | 0.14 | 6.2x | 51 | 72% |
| ROC 모멘텀 n=135, threshold=-0.03 |
5.2% | -61.5% | 0.36 | 0.09 | 4.6x | 243 | 76% |
| 볼린저 밴드 돌파 n=68, k=3.3 |
1.7% | -15.6% | 0.29 | 0.11 | 1.7x | 16 | 10% |
| Supertrend period=14, mult=3.4 |
3.2% | -48.8% | 0.27 | 0.06 | 2.5x | 170 | 57% |
| ADX / DI 방향성 period=33, threshold=19 |
1.6% | -29.0% | 0.22 | 0.06 | 1.6x | 76 | 19% |
| Keltner 채널 돌파 emaPeriod=52, atrPeriod=21, mult=1.9 |
2.0% | -40.2% | 0.21 | 0.05 | 1.8x | 174 | 46% |
| MACD fast=29, slow=48, signal=30 |
0.6% | -58.4% | 0.11 | 0.01 | 1.2x | 244 | 50% |
| Parabolic SAR step=0.005, maxStep=0.12 |
-0.8% | -76.5% | 0.04 | -0.01 | 0.8x | 280 | 56% |
| Buy and hold | 13.1% | -38.3% | 0.63 | 0.34 | 39.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 64-day average price crosses above the 174-day average
- Sell — Sell (to cash) when the 64-day average falls below the 174-day average