Trend-Following Backtester · Guide · backtest 한국어
equity · US
Afya Limited backtest
10 trend-following strategies were compared on the full daily history of Afya Limited. 9 beat buy-and-hold CAGR; ROC 모멘텀 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Keltner 채널 돌파 (CAGR 0.2%, MDD -6.3%).
Results by strategy
9 of 10 beat buy and hold (CAGR -9.1%, drawdown -72.1%).
Sharpe leader (same as main): ROC 모멘텀 — CAGR 5.0%, MDD -17.6%, Sharpe 0.39, 16% exposure.
Return/drawdown alternative: Keltner 채널 돌파 — CAGR is 14.1%p higher than buy and hold, while drawdown improves by 54.5%p (CAGR 0.2%, MDD -6.3%, exposure 2%).
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 |
|---|---|---|---|---|---|---|---|
| ROC 모멘텀 n=117, threshold=0.21 |
5.0% | -17.6% | 0.39 | 0.28 | 1.4x | 28 | 16% |
| SMA 크로스오버 fast=23, slow=63 |
4.1% | -43.8% | 0.28 | 0.09 | 1.3x | 26 | 48% |
| 볼린저 밴드 돌파 n=58, k=2.9 |
1.1% | -9.8% | 0.22 | 0.11 | 1.1x | 2 | 3% |
| Donchian 채널 돌파 entryN=68, exitN=31 |
1.2% | -36.1% | 0.16 | 0.03 | 1.1x | 10 | 24% |
| Keltner 채널 돌파 emaPeriod=28, atrPeriod=27, mult=3.9 |
0.2% | -6.3% | 0.08 | 0.03 | 1.0x | 2 | 2% |
| EMA 크로스오버 fast=24, slow=117 |
-1.1% | -36.3% | 0.07 | -0.03 | 0.9x | 16 | 35% |
| ADX / DI 방향성 period=39, threshold=15 |
-0.2% | -30.4% | 0.05 | -0.01 | 1.0x | 16 | 11% |
| Supertrend period=12, mult=4.7 |
-7.9% | -59.8% | -0.11 | -0.13 | 0.6x | 20 | 50% |
| Parabolic SAR step=0.04, maxStep=0.38 |
-9.1% | -65.1% | -0.20 | -0.14 | 0.5x | 236 | 49% |
| MACD fast=9, slow=34, signal=8 |
-10.1% | -69.2% | -0.23 | -0.15 | 0.5x | 136 | 50% |
| Buy and hold | -9.1% | -72.1% | 0.03 | -0.13 | 0.5x | 1 | 100% |
Rules of the top strategy
Rides the trend when recent return (momentum) over a window is above a threshold.
- Buy — Buy when the last 117-day return is greater than 21%
- Sell — Sell when the 117-day return drops to 21% or below