SleepWell Trade

Trend-Following Backtester · Guide · backtest 한국어

equity · IN

HFCL Limited backtest

10 trend-following strategies were compared on the full daily history of HFCL Limited. 9 beat buy-and-hold CAGR; MACD ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is ADX / DI 방향성 (CAGR 10.1%, MDD -45.9%).

Data 2002-08-12 ~ 2026-09-30daily bars 5,989 (24.1 years)Costs 0.5%Venue NSEMonthly snapshot 2026-09-30

Results by strategy

9 of 10 beat buy and hold (CAGR 6.6%, drawdown -89.3%).

Sharpe leader (same as main): MACD — CAGR 17.7%, MDD -81.0%, Sharpe 0.59, 46% exposure.

Return/drawdown alternative: ADX / DI 방향성 — CAGR is 11.1%p higher than buy and hold, while drawdown improves by 8.3%p (CAGR 10.1%, MDD -45.9%, exposure 9%).

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
MACD
fast=18, slow=52, signal=2
17.7%-81.0%0.590.2250.5x60446%
ADX / DI 방향성
period=16, threshold=37
10.1%-45.9%0.530.2210.3x509%
볼린저 밴드 돌파
n=10, k=1.1
13.6%-69.4%0.520.2021.8x55434%
ROC 모멘텀
n=4, threshold=0.06
12.1%-70.2%0.520.1715.7x70217%
Keltner 채널 돌파
emaPeriod=19, atrPeriod=18, mult=3.7
9.4%-66.0%0.510.148.7x448%
SMA 크로스오버
fast=34, slow=119
11.2%-86.0%0.460.1312.9x5744%
Supertrend
period=12, mult=1
11.1%-83.7%0.460.1312.6x61138%
Parabolic SAR
step=0.045, maxStep=0.12
9.3%-70.4%0.420.138.6x62046%
EMA 크로스오버
fast=21, slow=65
8.6%-85.1%0.400.107.2x8144%
Donchian 채널 돌파
entryN=17, exitN=78
5.4%-91.5%0.350.063.6x6575%
Buy and hold6.6%-89.3%0.400.074.7x1100%
1x 10x 100x 2003 2006 2009 2012 2015 2018 2021 2024 MACDBuy and hold
MACD: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -22% -45% -67% -89% 2003 2006 2009 2012 2015 2018 2021 2024 Buy and holdMACD
MACD maximum drawdown -81.0% (2021-09-15 → 2026-01-21), prior peak not yet recovered.

Rules of the top strategy

Looks at the gap (MACD) between a short and long average crossing its own signal line.

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