SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · IN

HDFC Bank Limited backtest

10 trend-following strategies were compared on the full daily history of HDFC Bank Limited. 0 beat buy-and-hold CAGR; SMA 크로스오버 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is SMA 크로스오버 (CAGR 19.2%, MDD -41.1%).

Data 1996-01-01 ~ 2026-09-30daily bars 7,718 (30.7 years)Costs 0.5%Venue NSEMonthly snapshot 2026-09-30

Results by strategy

0 of 10 beat buy and hold (CAGR 22.2%, drawdown -55.4%).

Sharpe leader (same as main): SMA 크로스오버 — CAGR 19.2%, MDD -41.1%, Sharpe 0.81, 72% exposure.

CAGR reference leader: ROC 모멘텀 — CAGR 20.1%, MDD -58.3%, exposure 100%. It is hold-like at 95%+ exposure and is not used as the featured strategy.

Return/drawdown alternative: SMA 크로스오버 — CAGR is 3.0%p lower than buy and hold, while drawdown improves by 14.3%p (CAGR 19.2%, MDD -41.1%, exposure 72%).

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=77, slow=195
19.2%-41.1%0.810.47222.3x3672%
EMA 크로스오버
fast=33, slow=216
18.0%-40.0%0.750.45162.8x3078%
ROC 모멘텀
Hold-like · Exposure 100%
n=6, threshold=-0.15
20.1%-58.3%0.730.35281.6x27100%
Donchian 채널 돌파
entryN=116, exitN=97
13.0%-48.3%0.630.2742.7x3065%
Supertrend
period=7, mult=3.6
9.1%-59.4%0.480.1514.5x13562%
Keltner 채널 돌파
emaPeriod=76, atrPeriod=5, mult=3.4
6.9%-40.6%0.450.177.8x8239%
볼린저 밴드 돌파
n=59, k=0.7
5.5%-55.8%0.350.105.2x25056%
ADX / DI 방향성
period=30, threshold=37
0.4%-4.1%0.300.101.1x41%
MACD
fast=21, slow=53, signal=14
2.2%-47.7%0.210.051.9x36150%
Parabolic SAR
step=0.015, maxStep=0.12
2.0%-60.5%0.200.031.8x54156%
Buy and hold22.2%-55.4%0.780.40473.3x1100%
1x 10x 100x 1997 2001 2005 2009 2013 2017 2021 2025 ROC 모멘텀SMA 크로스오버Buy and hold
SMA 크로스오버 (Sharpe leader), ROC 모멘텀 (CAGR reference), Buy and hold.
0% -15% -29% -44% -58% 1997 2001 2005 2009 2013 2017 2021 2025 Buy and holdROC 모멘텀SMA 크로스오버
SMA 크로스오버 maximum drawdown -41.1% (2019-12-23 → 2020-03-24), recovered after 408 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 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 IN assetsAll asset reports

Read next