Trend-Following Backtester · Guide · backtest 한국어

equity · BR

Companhia de Saneamento de Minas Gerais backtest

10 trend-following strategies were compared on the full daily history of Companhia de Saneamento de Minas Gerais. 6 beat buy-and-hold CAGR; ROC 모멘텀 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Donchian 채널 돌파 (CAGR 15.3%, MDD -45.2%).

Data 2006-02-08 ~ 2026-07-31daily bars 5,092 (20.5 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-07-31

Results by strategy

6 of 10 beat buy and hold (CAGR 10.7%, drawdown -83.8%).

Sharpe leader (same as main): ROC 모멘텀 — CAGR 14.5%, MDD -45.4%, Sharpe 0.64, 66% exposure.

CAGR reference leader: Donchian 채널 돌파 — CAGR 15.3%, MDD -45.2%, exposure 74%.

Return/drawdown alternative: Donchian 채널 돌파 — CAGR is 3.8%p higher than buy and hold, while drawdown improves by 38.4%p (CAGR 15.3%, MDD -45.2%, exposure 74%).

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
ROC 모멘텀
n=149, threshold=-0.04
14.5%-45.4%0.640.3215.9x10766%
Donchian 채널 돌파
entryN=11, exitN=38
15.3%-45.2%0.630.3418.5x8574%
MACD
fast=16, slow=38, signal=15
12.1%-50.2%0.580.2410.4x23451%
Supertrend
period=22, mult=4.9
12.3%-51.2%0.580.2410.8x5161%
EMA 크로스오버
fast=14, slow=218
11.7%-49.3%0.560.249.6x3162%
SMA 크로스오버
fast=14, slow=47
10.9%-51.9%0.530.218.4x12357%
볼린저 밴드 돌파
n=51, k=1.2
9.2%-50.8%0.500.186.0x12346%
Keltner 채널 돌파
emaPeriod=33, atrPeriod=29, mult=2
8.2%-46.6%0.500.185.0x10932%
Parabolic SAR
step=0.005, maxStep=0.26
9.6%-57.7%0.490.176.6x17152%
ADX / DI 방향성
period=27, threshold=32
3.1%-32.1%0.420.101.9x186%
Buy and hold10.7%-83.8%0.460.138.0x1100%
1x 10x 2007 2010 2013 2016 2019 2022 2025 Donchian 채널 돌파ROC 모멘텀Buy and hold
ROC 모멘텀 (Sharpe leader), Donchian 채널 돌파 (CAGR reference), Buy and hold.
0% -21% -42% -63% -84% 2007 2010 2013 2016 2019 2022 2025 Buy and holdDonchian 채널 돌파ROC 모멘텀
ROC 모멘텀 maximum drawdown -45.4% (2019-08-21 → 2023-02-10), recovered after 1,853 days.

Rules of the top strategy

Rides the trend when recent return (momentum) over a window is above a threshold.

Method and caveats

Past performance does not guarantee future returns. Parameters were selected on the same full-history sample using sharpe over 40 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 setupAll asset reports

Read next