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.5%, MDD -54.4%).

Data 2000-01-03 ~ 2026-07-31daily bars 6,672 (26.6 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-07-31

Results by strategy

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

Sharpe leader (same as main): Donchian 채널 돌파 — CAGR 13.2%, MDD -61.0%, Sharpe 0.55, 84% exposure.

Return/drawdown alternative: SMA 크로스오버 — CAGR is 1.7%p higher than buy and hold, while drawdown improves by 8.0%p (CAGR 10.5%, MDD -54.4%, 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=12, exitN=72
13.2%-61.0%0.550.2227.1x6684%
EMA 크로스오버
fast=41, slow=258
10.4%-56.2%0.490.1813.8x2765%
SMA 크로스오버
fast=75, slow=181
10.5%-54.4%0.490.1914.2x3365%
ROC 모멘텀
n=179, threshold=-0.04
8.3%-59.1%0.430.148.4x16767%
볼린저 밴드 돌파
n=46, k=0.8
5.5%-40.3%0.340.144.1x22649%
ADX / DI 방향성
period=46, threshold=9
4.7%-52.7%0.310.093.4x24448%
Supertrend
period=17, mult=2.5
3.4%-57.1%0.260.062.4x22256%
Parabolic SAR
step=0.005, maxStep=0.18
2.2%-59.3%0.210.041.8x23256%
Keltner 채널 돌파
emaPeriod=29, atrPeriod=29, mult=2.2
1.2%-54.1%0.150.021.4x14230%
MACD
fast=16, slow=38, signal=19
0.4%-57.0%0.140.011.1x33051%
Buy and hold11.5%-69.0%0.480.1718.2x1100%
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 -61.0% (2000-01-26 → 2003-03-20), recovered after 2,413 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 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