SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · BR

TOTVS S.A. backtest

10 trend-following strategies were compared on the full daily history of TOTVS S.A.. 0 beat buy-and-hold CAGR; ADX / DI 방향성 ranks first by Sharpe, matching the main backtester.

Data 2006-03-09 ~ 2026-09-30daily bars 5,113 (20.6 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-09-30

Results by strategy

0 of 10 beat buy and hold (CAGR 14.0%, drawdown -51.5%).

Sharpe leader (same as main): ADX / DI 방향성 — CAGR 3.1%, MDD -16.9%, Sharpe 0.51, 5% exposure.

CAGR reference leader: SMA 크로스오버 — CAGR 9.9%, MDD -55.9%, exposure 59%.

No strategy retained at least 75% of buy-and-hold CAGR while reducing drawdown by both 20% relatively and 5 percentage points absolutely.

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
ADX / DI 방향성
period=38, threshold=30
3.1%-16.9%0.510.181.9x85%
SMA 크로스오버
fast=35, slow=97
9.9%-55.9%0.490.187.0x5159%
Donchian 채널 돌파
entryN=18, exitN=85
9.5%-58.5%0.450.166.5x4781%
Supertrend
period=3, mult=3.8
8.3%-60.4%0.440.145.2x8961%
Keltner 채널 돌파
emaPeriod=51, atrPeriod=23, mult=3.9
5.0%-46.0%0.430.112.7x2617%
EMA 크로스오버
fast=55, slow=101
6.6%-75.4%0.370.093.7x4158%
볼린저 밴드 돌파
n=56, k=3.5
2.8%-25.1%0.350.111.7x107%
ROC 모멘텀
n=142, threshold=0.1
4.2%-58.0%0.300.072.3x17842%
MACD
fast=17, slow=70, signal=28
4.1%-58.5%0.290.072.3x17751%
Parabolic SAR
step=0.005, maxStep=0.26
1.7%-71.3%0.190.021.4x18554%
Buy and hold14.0%-51.5%0.550.2714.7x1100%
1x 10x 2007 2010 2013 2016 2019 2022 2025 SMA 크로스오버ADX / DI 방향성Buy and hold
ADX / DI 방향성 (Sharpe leader), SMA 크로스오버 (CAGR reference), Buy and hold.
0% -14% -28% -42% -56% 2007 2010 2013 2016 2019 2022 2025 Buy and holdSMA 크로스오버ADX / DI 방향성
ADX / DI 방향성 maximum drawdown -16.9% (2019-04-30 → 2019-09-09), prior peak not yet recovered.

Rules of the top strategy

Looks at both the direction and the strength of the trend; holds only in a strong uptrend.

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