Do Simple Trading Rules Survive Out of Sample? Evidence On Backtest Overfitting and Trading Costs from Indian Equity Indices, With Lessons for No-Code Backtesting Platforms
No-code and AI-based backtesting platforms let retail investors in India test trading ideas on past data in minutes. This makes testing cheap, but it also makes it easy to try many variations and keep the one that looks best. This paper asks how far simple technical rules hold up when they are checked on data they were not chosen on, and how much trading costs change the picture. I test 74 long-or-cash rules from four common families (moving average crossovers, price above a moving average, breakouts and RSI mean reversion) on daily Nifty 50 and Nifty Bank index data from February 2012 to November 2026. Rules are ranked on 2012 to 2019 data and checked on 2020 to 2026 data, with a cost of 0.10% per side. On the Nifty 50, only one of the 74 rules beat buy and hold on Sharpe ratio in-sample. The in-sample and out-of-sample rankings were fairly closely linked (rank correlation 0.69), helped by one large event, the March 2020 crash. On Nifty Bank, the best in-sample rule saw its Sharpe ratio fall from 1.08 to 0.37, below buy and hold, and only 7 of 74 rules beat buy and hold out of sample. A deflated Sharpe ratio of 0.77 to 0.82 and an estimated probability of backtest overfitting of about 0.35 show that the best in-sample results are not reliable. One thousand random rules produced an in-sample Sharpe ratio of 1.17, higher than any real rule, which fell to 0.29 out of sample. A walk-forward version that re-selects the best moving average rule each year earned 5.7% a year against 12.3% for buy and hold. Costs had a large effect on rules that trade often. The results suggest that backtesting platforms aimed at retail users should report out-of-sample results, trading costs, a buy-and-hold benchmark and the number of variations tried as standard features.
Authors
- Bhojraj Shewale
- Ayush Yadav
Institutions
- Amity University (AE)
Publication Details
- Journal
- Iconic Research and Engineering Journals
- Published
- 2026-11-26
- DOI
- https://doi.org/10.64388/ire1725814
- Primary Topic
- Financial Markets and Investment Strategies
- Type
- article
- Field-Weighted Citation Impact
- 0.00