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-07-31daily bars 5,071 (20.4 years)Costs 0.5%Venue BMFBOVESPAMonthly snapshot 2026-07-31

Results by strategy

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

Sharpe leader (same as main): ADX / DI 방향성 — CAGR 2.9%, MDD -18.4%, Sharpe 0.51, 4% exposure.

CAGR reference leader: SMA 크로스오버 — CAGR 9.1%, MDD -68.4%, 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=35, threshold=32
2.9%-18.4%0.510.161.8x84%
SMA 크로스오버
fast=28, slow=130
9.1%-68.4%0.460.135.9x5259%
Donchian 채널 돌파
entryN=49, exitN=38
7.5%-57.6%0.420.134.3x5253%
Keltner 채널 돌파
emaPeriod=53, atrPeriod=16, mult=4
4.9%-43.0%0.420.112.6x2618%
EMA 크로스오버
fast=12, slow=52
6.6%-59.3%0.380.113.6x11059%
Supertrend
period=8, mult=3.8
6.4%-63.3%0.370.103.5x7861%
볼린저 밴드 돌파
n=59, k=3.5
2.5%-28.8%0.310.091.6x128%
ROC 모멘텀
n=142, threshold=0.07
4.3%-65.0%0.300.072.3x16247%
MACD
fast=18, slow=67, signal=29
3.2%-58.0%0.250.051.9x17351%
Parabolic SAR
step=0.005, maxStep=0.2
1.6%-71.3%0.190.021.4x18354%
Buy and hold13.7%-51.5%0.540.2713.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% -17% -34% -51% -68% 2007 2010 2013 2016 2019 2022 2025 Buy and holdSMA 크로스오버ADX / DI 방향성
ADX / DI 방향성 maximum drawdown -18.4% (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 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