Trend-Following Backtester · Guide · backtest 한국어

equity · IN

Patanjali Foods Limited backtest

10 trend-following strategies were compared on the full daily history of Patanjali Foods Limited. 10 beat buy-and-hold CAGR; ROC 모멘텀 ranks first by Sharpe, matching the main backtester. The return/drawdown alternative is ADX / DI 방향성 (CAGR 10.9%, MDD -27.2%).

Data 2002-07-01 ~ 2026-07-31daily bars 5,981 (24.1 years)Costs 0.5%Venue NSEMonthly snapshot 2026-07-31

Results by strategy

10 of 10 beat buy and hold (CAGR 1.2%, drawdown -99.9%).

Sharpe leader (same as main): ROC 모멘텀 — CAGR 22.8%, MDD -44.1%, Sharpe 1.20, 5% exposure.

Return/drawdown alternative: ADX / DI 방향성 — CAGR is 21.6%p higher than buy and hold, while drawdown improves by 55.8%p (CAGR 10.9%, MDD -27.2%, exposure 4%).

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
ROC 모멘텀
n=4, threshold=0.14
22.8%-44.1%1.200.52140.3x1765%
ADX / DI 방향성
period=10, threshold=55
10.9%-27.2%0.920.4012.2x284%
Keltner 채널 돌파
emaPeriod=41, atrPeriod=11, mult=2.1
18.2%-57.3%0.730.3255.6x9025%
볼린저 밴드 돌파
n=43, k=2.2
18.1%-57.8%0.730.3154.9x9227%
Supertrend
period=22, mult=3.6
20.1%-91.2%0.700.2282.3x9646%
SMA 크로스오버
fast=9, slow=30
16.3%-90.3%0.610.1838.1x22844%
Donchian 채널 돌파
entryN=18, exitN=14
7.6%-98.7%0.550.085.8x12440%
Parabolic SAR
step=0.005, maxStep=0.18
13.9%-81.8%0.550.1723.1x18245%
EMA 크로스오버
fast=11, slow=19
12.1%-94.2%0.500.1315.5x24244%
MACD
fast=12, slow=72, signal=23
4.2%-99.4%0.460.042.7x22650%
Buy and hold1.2%-99.9%0.230.011.3x1100%
0.1 1x 10x 100x 2003 2006 2009 2012 2015 2018 2021 2024 ROC 모멘텀Buy and hold
ROC 모멘텀: Solid strategy line versus dashed buy-and-hold line. Log scale.
0% -25% -50% -75% -100% 2003 2006 2009 2012 2015 2018 2021 2024 Buy and holdROC 모멘텀
ROC 모멘텀 maximum drawdown -44.1% (2010-12-16 → 2018-12-07), recovered after 3,338 days.

Rules of the top strategy

Rides the trend when recent return (momentum) over a window is above a threshold.

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