SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · BR

Companhia de Saneamento Basico do Estado de Sao Paulo SABESP backtest

10 trend-following strategies were compared on the full daily history of Companhia de Saneamento Basico do Estado de Sao Paulo SABESP. 1 beat buy-and-hold CAGR; Donchian 채널 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is SMA 크로스오버 (CAGR 10.6%, MDD -54.0%).

Data 2000-01-03 ~ 2026-09-30daily bars 6,714 (26.7 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-09-30

Results by strategy

1 of 10 beat buy and hold (CAGR 11.4%, drawdown -69.0%).

Sharpe leader (same as main): Donchian 채널 돌파 — CAGR 13.7%, MDD -58.2%, Sharpe 0.56, 86% exposure.

Return/drawdown alternative: SMA 크로스오버 — CAGR is 2.2%p higher than buy and hold, while drawdown improves by 10.8%p (CAGR 10.6%, MDD -54.0%, exposure 65%).

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=10, exitN=84
13.7%-58.2%0.560.2330.7x6386%
SMA 크로스오버
fast=73, slow=179
10.6%-54.0%0.490.2014.7x3465%
EMA 크로스오버
fast=44, slow=218
9.2%-55.1%0.460.1710.5x3464%
볼린저 밴드 돌파
n=31, k=2.8
4.4%-26.3%0.370.173.2x7619%
Supertrend
period=4, mult=4.2
6.3%-52.9%0.370.125.1x10559%
ADX / DI 방향성
period=45, threshold=9
5.0%-54.4%0.330.093.7x24248%
ROC 모멘텀
n=83, threshold=0
5.2%-53.2%0.320.103.9x25062%
MACD
fast=28, slow=39, signal=24
2.8%-69.0%0.240.042.1x23551%
Parabolic SAR
step=0.005, maxStep=0.24
2.3%-59.3%0.220.041.8x23356%
Keltner 채널 돌파
emaPeriod=47, atrPeriod=14, mult=1.7
2.2%-57.6%0.210.041.8x17242%
Buy and hold11.4%-69.0%0.480.1718.0x1100%
1x 10x 2001 2005 2009 2013 2017 2021 2025 Donchian 채널 돌파Buy and hold
Donchian 채널 돌파: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -17% -34% -52% -69% 2001 2005 2009 2013 2017 2021 2025 Buy and holdDonchian 채널 돌파
Donchian 채널 돌파 maximum drawdown -58.2% (2001-03-01 → 2003-03-20), recovered after 1,894 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