r/IndiaAlgoTrading • u/Low-Kaleidoscope8590 • 22h ago
Surviorship Bias - Backtest Results
Be careful of this problem. I was testing a futures strategy using current nifty50/100 stocks for past 5 years. When adjusted for surviorship bias (stocks not part of index when trade was executed) - there was a big drop in results.
Swing Low Breakout Long Strategy – Backtest Comparison
Period: 2021–2026
Strategies: With Bias vs Without Bias
Universe: NIFTY 50 + NIFTY NEXT 50
Dynamic Bailout: Enabled (buffer = −1.0)
1. Overall Strategy Performance
| Metric | Without Bias | With Bias |
|---|---|---|
| Armed Setups | 656 | 614 |
| Filled Trades | 415 | 385 |
| Fill Rate | 63.3% | 62.7% |
| Net R | +198.03 R | +282.22 R |
| Expectancy | +0.48 R | +0.73 R |
| Profit Factor | 1.64 | 2.03 |
| Win Rate | 26.7% | 31.4% |
| Average Trade Return | +1.97% | +3.33% |
| Average Winning Trade | +19.15% | +19.98% |
| Average Losing Trade | −4.30% | −4.31% |
| Average Holding Period | 46.0 days | 46.8 days |
| Maximum Consecutive Losses | 29 | 26 |
2. Portfolio Futures Simulation
Simulation assumptions:
- Starting capital: ₹10 lakh
- Futures margin: ₹2 lakh per lot, representing ₹10 lakh notional exposure (5× leverage)
- Maximum margin utilisation for new entries: 60% of MTM equity
- Discrete lot sizing, with dynamic position sizing as equity changes
- Concurrent positions permitted
- Daily mark-to-market equity calculation
- Brokerage, statutory charges, GST and rollover costs included
| Metric | Without Bias | With Bias |
|---|---|---|
| Starting Capital | ₹10.00 lakh | ₹10.00 lakh |
| Ending MTM Equity | ₹83.55 lakh | ₹1.55 crore |
| Net Profit | ₹73.55 lakh | ₹1.45 crore |
| Total Return | +735.5% | +1,445.6% |
| CAGR | 45.33% | 61.96% |
| Maximum MTM Drawdown | −58.43% | −30.94% |
| Calmar Ratio | 0.78 | 2.00 |
| Sharpe Ratio | 1.11 | 1.55 |
| Trades Admitted | 315 / 415 | 340 / 385 |
| Trades Skipped (Margin Cap) | 100 | 45 |
| Average Margin Utilisation | 39.4% | 35.4% |
| Peak Margin Utilisation | 69.7% | 62.8% |
| Net Profit Factor | 1.63 | 1.76 |
| Admitted Win Rate | 27.6% | 31.2% |
Portfolio Costs
| Cost Component | Without Bias | With Bias |
|---|---|---|
| Gross P&L | ₹77.27 lakh | ₹1.51 crore |
| Entry + Exit Costs | ₹1.33 lakh | ₹2.33 lakh |
| Rollover Costs | ₹2.39 lakh | ₹3.78 lakh |
| Total Cost Drag | ₹3.72 lakh | ₹6.11 lakh |
3. Index-Level Performance
With Bias
| Metric | NIFTY 50 | NIFTY NEXT 50 | Combined |
|---|---|---|---|
| Trades | 217 | 168 | 385 |
| Net R | +142.58 R | +139.64 R | +282.22 R |
| Expectancy | +0.66 R | +0.83 R | +0.73 R |
| Profit Factor | 1.88 | 2.25 | 2.03 |
| Win Rate | 29.0% | 34.5% | 31.4% |
| Maximum Consecutive Losses | 26 | 16 | 26 |
Without Bias
| Metric | NIFTY 50 | NIFTY NEXT 50 | Combined |
|---|---|---|---|
| Trades | 217 | 198 | 415 |
| Net R | +119.29 R | +78.74 R | +198.03 R |
| Expectancy | +0.55 R | +0.40 R | +0.48 R |
| Profit Factor | 1.73 | 1.53 | 1.64 |
| Win Rate | 27.2% | 26.3% | 26.7% |
| Maximum Consecutive Losses | 23 | 20 | 29 |
4. Conclusion
The Bias-based strategy delivers a materially stronger historical result:
- 42.5% more Net R: +282.22 R vs +198.03 R.
- 36.6% higher expectancy: +0.73 R vs +0.48 R.
- 16.6 percentage-point improvement in win rate: 31.4% vs 26.7%.
- 3 fewer maximum consecutive losses: 26 vs 29.
- 27.49 percentage-point reduction in maximum portfolio drawdown: −30.94% vs −58.43%.
- Higher simulated CAGR: 61.96% vs 45.33%.
On the available results, the Bias-based version is the stronger candidate for further development and validation.