SleepWell Trade

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-08-31daily bars 5,170 (20.8 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-08-31

Results by strategy

8 of 10 beat buy and hold (CAGR -0.3%, drawdown -88.5%).

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

Return/drawdown alternative: 볼린저 밴드 돌파 — CAGR is 7.5%p higher than buy and hold, while drawdown improves by 15.0%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%
Donchian 채널 돌파
entryN=11, exitN=44
3.7%-82.8%0.280.042.1x8376%
Parabolic SAR
step=0.005, maxStep=0.04
3.4%-76.8%0.260.042.0x15652%
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.0x9649%
MACD
fast=19, slow=30, signal=12
-1.8%-69.6%0.08-0.030.7x27351%
ROC 모멘텀
n=145, threshold=0.13
-2.0%-59.8%-0.00-0.030.7x17233%
Buy and hold-0.3%-88.5%0.20-0.000.9x1100%
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 carried forward from the latest full optimization and replayed on this monthly dataset. 0.5% trading costs are included; taxes, slippage and rejected orders are not.
Re-optimize the same period and setupMore BR assetsAll asset reports

Read next