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%).
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 · parameters | CAGR | MDD | Sharpe | Calmar | Total | Trades | Exposure |
|---|---|---|---|---|---|---|---|
| Donchian 채널 돌파 entryN=10, exitN=84 |
13.7% | -58.2% | 0.56 | 0.23 | 30.7x | 63 | 86% |
| SMA 크로스오버 fast=73, slow=179 |
10.6% | -54.0% | 0.49 | 0.20 | 14.7x | 34 | 65% |
| EMA 크로스오버 fast=44, slow=218 |
9.2% | -55.1% | 0.46 | 0.17 | 10.5x | 34 | 64% |
| 볼린저 밴드 돌파 n=31, k=2.8 |
4.4% | -26.3% | 0.37 | 0.17 | 3.2x | 76 | 19% |
| Supertrend period=4, mult=4.2 |
6.3% | -52.9% | 0.37 | 0.12 | 5.1x | 105 | 59% |
| ADX / DI 방향성 period=45, threshold=9 |
5.0% | -54.4% | 0.33 | 0.09 | 3.7x | 242 | 48% |
| ROC 모멘텀 n=83, threshold=0 |
5.2% | -53.2% | 0.32 | 0.10 | 3.9x | 250 | 62% |
| MACD fast=28, slow=39, signal=24 |
2.8% | -69.0% | 0.24 | 0.04 | 2.1x | 235 | 51% |
| Parabolic SAR step=0.005, maxStep=0.24 |
2.3% | -59.3% | 0.22 | 0.04 | 1.8x | 233 | 56% |
| Keltner 채널 돌파 emaPeriod=47, atrPeriod=14, mult=1.7 |
2.2% | -57.6% | 0.21 | 0.04 | 1.8x | 172 | 42% |
| Buy and hold | 11.4% | -69.0% | 0.48 | 0.17 | 18.0x | 1 | 100% |
Rules of the top strategy
A new high means a trend starting; a new low means it’s over (turtle-trading style).
- Buy — Buy on a breakout above the highest high of the last 10 days
- Sell — Sell when price breaks below the lowest low of the last 84 days