Trend-Following Backtester · Guide · backtest 한국어
equity · BR
Ultrapar Participacoes S.A. backtest
10 trend-following strategies were compared on the full daily history of Ultrapar Participacoes S.A.. 6 beat buy-and-hold CAGR; Keltner 채널 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Keltner 채널 돌파 (CAGR 6.5%, MDD -37.1%).
Results by strategy
6 of 10 beat buy and hold (CAGR -38.0%, drawdown -100.0%).
Sharpe leader (same as main): Keltner 채널 돌파 — CAGR 6.5%, MDD -37.1%, Sharpe 0.52, 30% exposure.
CAGR reference leader: MACD — CAGR 8.6%, MDD -56.6%, exposure 52%.
Return/drawdown alternative: Keltner 채널 돌파 — CAGR is 44.5%p higher than buy and hold, while drawdown improves by 62.9%p (CAGR 6.5%, MDD -37.1%, exposure 30%).
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=43, atrPeriod=17, mult=3.6 |
6.5% | -37.1% | 0.52 | 0.17 | 4.4x | 31 | 30% |
| MACD fast=23, slow=55, signal=20 |
8.6% | -56.6% | 0.47 | 0.15 | 7.2x | 129 | 52% |
| SMA 크로스오버 fast=16, slow=49 |
7.3% | -71.9% | 0.45 | 0.10 | 5.4x | 97 | 42% |
| Donchian 채널 돌파 entryN=9, exitN=19 |
-36.6% | -100.0% | 0.40 | -0.37 | 0.0x | 107 | 77% |
| EMA 크로스오버 fast=11, slow=37 |
5.5% | -77.3% | 0.36 | 0.07 | 3.5x | 117 | 53% |
| ROC 모멘텀 n=147, threshold=0.14 |
4.5% | -74.2% | 0.33 | 0.06 | 2.8x | 107 | 31% |
| 볼린저 밴드 돌파 n=49, k=1.9 |
-40.6% | -100.0% | 0.24 | -0.41 | 0.0x | 67 | 42% |
| Supertrend period=18, mult=3.7 |
-40.5% | -100.0% | 0.23 | -0.41 | 0.0x | 71 | 54% |
| ADX / DI 방향성 period=22, threshold=21 |
-42.1% | -100.0% | 0.13 | -0.42 | 0.0x | 69 | 33% |
| Parabolic SAR step=0.005, maxStep=0.28 |
-43.2% | -100.0% | 0.08 | -0.43 | 0.0x | 118 | 46% |
| Buy and hold | -38.0% | -100.0% | 0.35 | -0.38 | 0.0x | 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 43-day average + 3.6× volatility (Keltner top)
- Sell — Sell when the close falls back to the 43-day average