SleepWell Trade

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 14.5%, MDD -45.2%).

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

Results by strategy

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

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

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

Return/drawdown alternative: Donchian 채널 돌파 — CAGR is 3.7%p higher than buy and hold, while drawdown improves by 38.4%p (CAGR 14.5%, 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
13.6%-45.4%0.610.3013.7x10766%
Donchian 채널 돌파
entryN=11, exitN=38
14.5%-45.2%0.600.3216.2x8674%
MACD
fast=16, slow=38, signal=15
12.1%-50.2%0.580.2410.4x23451%
Supertrend
period=22, mult=4.9
11.5%-51.2%0.550.229.4x5261%
EMA 크로스오버
fast=14, slow=218
10.8%-49.3%0.530.228.3x3162%
SMA 크로스오버
fast=14, slow=47
10.1%-51.9%0.500.197.2x12457%
Keltner 채널 돌파
emaPeriod=33, atrPeriod=29, mult=2
7.9%-46.6%0.490.174.8x11032%
볼린저 밴드 돌파
n=51, k=1.2
8.8%-50.8%0.490.175.6x12446%
Parabolic SAR
step=0.005, maxStep=0.26
9.4%-57.7%0.480.166.3x17252%
ADX / DI 방향성
period=27, threshold=32
3.1%-32.1%0.420.101.9x186%
Buy and hold9.9%-83.8%0.440.126.9x1100%
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 carried forward from the latest full optimization and replayed on this monthly dataset. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-optimize the same period and setupMore BR assetsAll asset reports

Read next