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; Donchian 채널 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is 볼린저 밴드 돌파 (CAGR 9.1%, MDD -31.8%).

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

Results by strategy

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

Sharpe leader (same as main): Donchian 채널 돌파 — CAGR 16.1%, MDD -50.5%, Sharpe 0.64, 79% exposure.

Return/drawdown alternative: 볼린저 밴드 돌파 — CAGR is 6.2%p higher than buy and hold, while drawdown improves by 33.3%p (CAGR 9.1%, MDD -31.8%, 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
Donchian 채널 돌파
entryN=12, exitN=62
16.1%-50.5%0.640.3221.9x6379%
ROC 모멘텀
n=142, threshold=-0.04
14.0%-49.1%0.620.2915.0x10367%
MACD
fast=15, slow=33, signal=18
12.7%-51.8%0.600.2511.8x23151%
SMA 크로스오버
fast=49, slow=181
12.0%-48.5%0.560.2510.4x2962%
볼린저 밴드 돌파
n=27, k=2.2
9.1%-31.8%0.560.296.0x11830%
Supertrend
period=14, mult=4.8
11.8%-47.6%0.560.2510.0x5461%
EMA 크로스오버
fast=15, slow=218
11.0%-49.8%0.540.228.6x2962%
Keltner 채널 돌파
emaPeriod=30, atrPeriod=12, mult=1.8
8.0%-46.6%0.500.174.9x11832%
Parabolic SAR
step=0.005, maxStep=0.16
9.2%-57.7%0.480.166.2x17352%
ADX / DI 방향성
period=21, threshold=37
3.3%-28.7%0.450.111.9x185%
Buy and hold9.9%-83.8%0.440.127.0x1100%
1x 10x 2007 2010 2013 2016 2019 2022 2025 Donchian 채널 돌파Buy and hold
Donchian 채널 돌파: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -21% -42% -63% -84% 2007 2010 2013 2016 2019 2022 2025 Buy and holdDonchian 채널 돌파
Donchian 채널 돌파 maximum drawdown -50.5% (2020-06-22 → 2022-07-26), recovered after 1,893 days.

Rules of the top strategy

A new high means a trend starting; a new low means it’s over (turtle-trading style).

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