Trend-Following Backtester · Guide · backtest 한국어

equity · IN

Mahanagar Gas Ltd backtest

10 trend-following strategies were compared on the full daily history of Mahanagar Gas Ltd. 2 beat buy-and-hold CAGR; Donchian 채널 돌파 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is Supertrend (CAGR 8.1%, MDD -34.5%).

Data 2016-07-01 ~ 2026-07-31daily bars 2,492 (10.1 years)Costs 0.5%Venue NSEMonthly snapshot 2026-07-31

Results by strategy

2 of 10 beat buy and hold (CAGR 7.9%, drawdown -53.8%).

Sharpe leader (same as main): Donchian 채널 돌파 — CAGR 10.7%, MDD -41.5%, Sharpe 0.52, 73% exposure.

Return/drawdown alternative: Supertrend — CAGR is 2.9%p higher than buy and hold, while drawdown improves by 12.3%p (CAGR 8.1%, MDD -34.5%, exposure 58%).

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
Donchian 채널 돌파
entryN=22, exitN=75
10.7%-41.5%0.520.262.8x1973%
Supertrend
period=16, mult=4.1
8.1%-34.5%0.450.232.2x3258%
ROC 모멘텀
n=54, threshold=-0.04
6.6%-45.1%0.380.151.9x10367%
SMA 크로스오버
fast=51, slow=57
5.8%-44.1%0.360.131.8x6156%
EMA 크로스오버
fast=60, slow=80
3.0%-52.0%0.250.061.4x1556%
Parabolic SAR
step=0.015, maxStep=0.2
1.8%-63.9%0.190.031.2x17151%
볼린저 밴드 돌파
n=55, k=1.7
0.2%-43.1%0.110.011.0x5036%
Keltner 채널 돌파
emaPeriod=37, atrPeriod=15, mult=2.9
0.5%-43.1%0.110.011.0x3623%
MACD
fast=16, slow=23, signal=14
-2.9%-60.1%-0.03-0.050.7x15251%
ADX / DI 방향성
period=30, threshold=11
-3.0%-58.5%-0.03-0.050.7x10849%
Buy and hold7.9%-53.8%0.400.152.1x1100%
1x 2017 2019 2021 2023 2025 Donchian 채널 돌파Buy and hold
Donchian 채널 돌파: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -13% -27% -40% -54% 2017 2019 2021 2023 2025 Buy and holdDonchian 채널 돌파
Donchian 채널 돌파 maximum drawdown -41.5% (2020-01-30 → 2022-07-26), recovered after 1,443 days.

Rules of the top strategy

A new high means a trend starting; a new low means it’s over (turtle-trading style).

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