Trend-Following Backtester · Guide · backtest 한국어

equity · BR

Cosan S.A. backtest

10 trend-following strategies were compared on the full daily history of Cosan S.A.. 8 beat buy-and-hold CAGR; Supertrend ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is 볼린저 밴드 돌파 (CAGR 2.1%, MDD -18.3%).

Data 2005-11-18 ~ 2026-07-31daily bars 5,149 (20.7 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-07-31

Results by strategy

8 of 10 beat buy and hold (CAGR -0.1%, drawdown -88.0%).

Sharpe leader (same as main): Supertrend — CAGR 7.3%, MDD -73.5%, Sharpe 0.41, 47% exposure.

Return/drawdown alternative: 볼린저 밴드 돌파 — CAGR is 7.4%p higher than buy and hold, while drawdown improves by 14.5%p (CAGR 2.1%, MDD -18.3%, exposure 3%).

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
Supertrend
period=23, mult=4.9
7.3%-73.5%0.410.104.3x5047%
ADX / DI 방향성
period=25, threshold=35
2.6%-20.9%0.370.131.7x104%
볼린저 밴드 돌파
n=21, k=3.2
2.1%-18.3%0.310.121.5x143%
Parabolic SAR
step=0.005, maxStep=0.04
4.3%-74.7%0.290.062.4x15552%
Donchian 채널 돌파
entryN=11, exitN=44
3.9%-79.9%0.280.052.2x8376%
SMA 크로스오버
fast=50, slow=212
2.2%-65.7%0.210.031.6x2447%
Keltner 채널 돌파
emaPeriod=29, atrPeriod=25, mult=2
2.1%-50.9%0.210.041.5x10225%
EMA 크로스오버
fast=17, slow=55
0.2%-67.1%0.140.001.0x9650%
MACD
fast=19, slow=30, signal=12
-1.2%-69.6%0.10-0.020.8x27151%
ROC 모멘텀
n=145, threshold=0.13
-2.0%-59.8%-0.00-0.030.7x17233%
Buy and hold-0.1%-88.0%0.21-0.001.0x1100%
1x 10x 2006 2009 2012 2015 2018 2021 2024 SupertrendBuy and hold
Supertrend: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -22% -44% -66% -88% 2006 2009 2012 2015 2018 2021 2024 Buy and holdSupertrend
Supertrend maximum drawdown -73.5% (2020-07-31 → 2026-03-16), prior peak not yet recovered.

Rules of the top strategy

Trades the direction of a volatility-based trend line that trails below/above price.

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