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 Keltner 채널 돌파 (CAGR 8.2%, MDD -18.9%).
Results by strategy
10 of 10 beat buy and hold (CAGR 1.3%, drawdown -99.9%).
Sharpe leader (same as main): ROC 모멘텀 — CAGR 18.2%, MDD -40.9%, Sharpe 1.28, 3% exposure.
CAGR reference leader: Supertrend — CAGR 20.7%, MDD -89.0%, exposure 46%.
Return/drawdown alternative: Keltner 채널 돌파 — CAGR is 16.9%p higher than buy and hold, while drawdown improves by 59.0%p (CAGR 8.2%, MDD -18.9%, exposure 1%).
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 · parameters | CAGR | MDD | Sharpe | Calmar | Total | Trades | Exposure |
|---|---|---|---|---|---|---|---|
| ROC 모멘텀 n=5, threshold=0.24 |
18.2% | -40.9% | 1.28 | 0.44 | 57.5x | 70 | 3% |
| Keltner 채널 돌파 emaPeriod=10, atrPeriod=8, mult=4 |
8.2% | -18.9% | 1.11 | 0.43 | 6.8x | 4 | 1% |
| 볼린저 밴드 돌파 n=42, k=2.1 |
19.0% | -59.6% | 0.75 | 0.32 | 68.0x | 101 | 28% |
| Supertrend period=28, mult=3.8 |
20.7% | -89.0% | 0.72 | 0.23 | 96.4x | 89 | 46% |
| ADX / DI 방향성 period=11, threshold=31 |
14.8% | -68.9% | 0.69 | 0.21 | 28.5x | 153 | 21% |
| SMA 크로스오버 fast=18, slow=46 |
16.2% | -75.5% | 0.60 | 0.21 | 37.7x | 127 | 43% |
| Donchian 채널 돌파 entryN=100, exitN=13 |
11.0% | -45.7% | 0.57 | 0.24 | 12.5x | 56 | 16% |
| Parabolic SAR step=0.005, maxStep=0.42 |
13.8% | -81.8% | 0.55 | 0.17 | 22.8x | 183 | 45% |
| EMA 크로스오버 fast=18, slow=33 |
11.9% | -91.4% | 0.50 | 0.13 | 15.1x | 127 | 43% |
| MACD fast=23, slow=47, signal=14 |
3.0% | -99.5% | 0.44 | 0.03 | 2.1x | 259 | 51% |
| Buy and hold | 1.3% | -99.9% | 0.23 | 0.01 | 1.4x | 1 | 100% |
Rules of the top strategy
Rides the trend when recent return (momentum) over a window is above a threshold.
- Buy — Buy when the last 5-day return is greater than 24%
- Sell — Sell when the 5-day return drops to 24% or below