Trend-Following Backtester · Guide · backtest 한국어
equity · US
XP Inc. backtest
10 trend-following strategies were compared on the full daily history of XP Inc.. 9 beat buy-and-hold CAGR; Keltner 채널 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is ADX / DI 방향성 (CAGR 3.9%, MDD -8.4%).
Results by strategy
9 of 10 beat buy and hold (CAGR -10.1%, drawdown -79.2%).
Sharpe leader (same as main): Keltner 채널 돌파 — CAGR 8.8%, MDD -27.6%, Sharpe 0.61, 10% exposure.
CAGR reference leader: MACD — CAGR 9.8%, MDD -56.2%, exposure 48%.
Return/drawdown alternative: ADX / DI 방향성 — CAGR is 19.0%p higher than buy and hold, while drawdown improves by 51.6%p (CAGR 3.9%, MDD -8.4%, exposure 3%).
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 |
|---|---|---|---|---|---|---|---|
| Keltner 채널 돌파 emaPeriod=39, atrPeriod=5, mult=3.4 |
8.8% | -27.6% | 0.61 | 0.32 | 1.8x | 8 | 10% |
| ADX / DI 방향성 period=20, threshold=39 |
3.9% | -8.4% | 0.61 | 0.46 | 1.3x | 2 | 3% |
| MACD fast=18, slow=33, signal=21 |
9.8% | -56.2% | 0.44 | 0.17 | 1.9x | 65 | 48% |
| ROC 모멘텀 n=19, threshold=0.12 |
7.1% | -49.9% | 0.42 | 0.14 | 1.6x | 92 | 19% |
| Donchian 채널 돌파 entryN=40, exitN=6 |
5.3% | -50.2% | 0.36 | 0.10 | 1.4x | 32 | 17% |
| Supertrend period=10, mult=3.5 |
1.6% | -42.2% | 0.20 | 0.04 | 1.1x | 36 | 42% |
| 볼린저 밴드 돌파 n=33, k=1.8 |
1.6% | -51.5% | 0.19 | 0.03 | 1.1x | 43 | 28% |
| SMA 크로스오버 fast=34, slow=66 |
0.0% | -55.3% | 0.15 | 0.00 | 1.0x | 26 | 41% |
| EMA 크로스오버 fast=51, slow=95 |
-7.9% | -56.0% | -0.14 | -0.14 | 0.6x | 12 | 42% |
| Parabolic SAR step=0.015, maxStep=0.26 |
-11.2% | -75.7% | -0.14 | -0.15 | 0.5x | 127 | 49% |
| Buy and hold | -10.1% | -79.2% | 0.10 | -0.13 | 0.5x | 1 | 100% |
Rules of the top strategy
Breaking above the channel top (average plus a multiple of volatility) signals an upside breakout.
- Buy — Buy when the close breaks above the 39-day average + 3.4× volatility (Keltner top)
- Sell — Sell when the close falls back to the 39-day average