Trend-Following Backtester · Guide · backtest 한국어

equity · ID

PT Gudang Garam Tbk backtest

10 trend-following strategies were compared on the full daily history of PT Gudang Garam Tbk. 8 beat buy-and-hold CAGR; SMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is EMA 크로스오버 (CAGR 10.0%, MDD -41.2%).

Data 2001-06-07 ~ 2026-07-31daily bars 6,243 (25.1 years)Costs 0.5%Venue IDXMonthly snapshot 2026-07-31

Results by strategy

8 of 10 beat buy and hold (CAGR 1.8%, drawdown -91.2%).

Sharpe leader (same as main): SMA 크로스오버 — CAGR 10.1%, MDD -47.6%, Sharpe 0.53, 41% exposure.

Return/drawdown alternative: EMA 크로스오버 — CAGR is 8.4%p higher than buy and hold, while drawdown improves by 43.6%p (CAGR 10.0%, MDD -41.2%, exposure 45%).

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
SMA 크로스오버
fast=52, slow=171
10.1%-47.6%0.530.2111.4x3141%
ADX / DI 방향성
period=34, threshold=18
8.4%-59.0%0.530.147.7x7520%
EMA 크로스오버
fast=45, slow=183
10.0%-41.2%0.520.2410.9x2945%
Donchian 채널 돌파
entryN=55, exitN=28
9.5%-56.8%0.500.179.7x6139%
Keltner 채널 돌파
emaPeriod=48, atrPeriod=9, mult=3.9
5.0%-56.4%0.370.093.4x5219%
ROC 모멘텀
n=107, threshold=0.1
5.6%-69.9%0.360.083.9x14731%
볼린저 밴드 돌파
n=39, k=2.8
3.9%-59.6%0.310.072.6x7419%
Supertrend
period=17, mult=5
3.9%-68.6%0.280.062.6x8749%
Parabolic SAR
step=0.005, maxStep=0.08
-5.1%-89.1%-0.08-0.060.3x19548%
MACD
fast=14, slow=30, signal=15
-10.0%-96.1%-0.26-0.100.1x37551%
Buy and hold1.8%-91.2%0.230.021.6x1100%
1x 10x 2002 2006 2010 2014 2018 2022 2026 SMA 크로스오버Buy and hold
SMA 크로스오버: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -23% -46% -68% -91% 2002 2006 2010 2014 2018 2022 2026 Buy and holdSMA 크로스오버
SMA 크로스오버 maximum drawdown -47.6% (2011-12-02 → 2013-06-25), recovered after 1,693 days.

Rules of the top strategy

When the short average rises above the long average, it reads that as an uptrend starting.

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