SleepWell Trade

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%).

Data 2002-12-11 ~ 2026-09-30daily bars 5,947 (23.8 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-09-30

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 · parametersCAGRMDDSharpeCalmarTotalTradesExposure
Keltner 채널 돌파
emaPeriod=43, atrPeriod=17, mult=3.6
6.5%-37.1%0.520.174.4x3130%
MACD
fast=23, slow=55, signal=20
8.6%-56.6%0.470.157.2x12952%
SMA 크로스오버
fast=16, slow=49
7.3%-71.9%0.450.105.4x9742%
Donchian 채널 돌파
entryN=9, exitN=19
-36.6%-100.0%0.40-0.370.0x10777%
EMA 크로스오버
fast=11, slow=37
5.5%-77.3%0.360.073.5x11753%
ROC 모멘텀
n=147, threshold=0.14
4.5%-74.2%0.330.062.8x10731%
볼린저 밴드 돌파
n=49, k=1.9
-40.6%-100.0%0.24-0.410.0x6742%
Supertrend
period=18, mult=3.7
-40.5%-100.0%0.23-0.410.0x7154%
ADX / DI 방향성
period=22, threshold=21
-42.1%-100.0%0.13-0.420.0x6933%
Parabolic SAR
step=0.005, maxStep=0.28
-43.2%-100.0%0.08-0.430.0x11846%
Buy and hold-38.0%-100.0%0.35-0.380.0x1100%
0.000001 0.00001 0.0001 0.001 0.01 0.1 1x 2003 2006 2009 2012 2015 2018 2021 2024 MACDKeltner 채널 돌파Buy and hold
Keltner 채널 돌파 (Sharpe leader), MACD (CAGR reference), Buy and hold.
0% -25% -50% -75% -100% 2003 2006 2009 2012 2015 2018 2021 2024 Buy and holdMACDKeltner 채널 돌파
Keltner 채널 돌파 maximum drawdown -37.1% (2020-01-23 → 2021-08-13), recovered after 1,485 days.

Rules of the top strategy

Breaking above the channel top (average plus a multiple of volatility) signals an upside breakout.

Method and caveats

Past performance does not guarantee future returns. Parameters were selected on the same full-history sample using sharpe over 120 trials per strategy, so results contain in-sample bias. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-run the same setupMore BR assetsAll asset reports

Read next