Home / Current Issue / Paper 1725814
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
Subject area: Management and Commerce · Area of research: Algorithmic Trading, Quantitative Finance
DOI: 10.64388/ire1725814
Abstract
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.
Keywords
backtesting, overfitting, technical analysis, Nifty 50, retail investors, algorithmic trading, deflated Sharpe ratio, India
References
[1] Bailey DH, Borwein JM, López de Prado M, Zhu QJ (2014). Pseudo-mathematics and financial charlatanism: the effects of backtest overfitting on out-of-sample performance. Notices of the American Mathematical Society, 61(5), 458–471.
[2] Bailey DH, Borwein JM, López de Prado M, Zhu QJ (2017). The probability of backtest overfitting. Journal of Computational Finance, 20(4), 39–69.
[3] Bailey DH, López de Prado M (2014). The deflated Sharpe ratio: correcting for selection bias, backtest overfitting and non-normality. Journal of Portfolio Management, 40(5), 94–107.
[4] Barber BM, Lee YT, Liu YJ, Odean T (2014). The cross-section of speculator skill: evidence from day trading. Journal of Financial Markets, 18, 1–24.
[5] Barber BM, Odean T (2000). Trading is hazardous to your wealth: the common stock investment performance of individual investors. Journal of Finance, 55(2), 773–806.
[6] Brock W, Lakonishok J, LeBaron B (1992). Simple technical trading rules and the stochastic properties of stock returns. Journal of Finance, 47(5), 1731–1764.
[7] Davis FD (1989). Perceived usefulness, perceived ease of use, and user acceptance of information technology. MIS Quarterly, 13(3), 319–340.
[8] Faber MT (2007). A quantitative approach to tactical asset allocation. Journal of Wealth Management, 9(4), 69–79.
[9] Fama EF (1970). Efficient capital markets: a review of theory and empirical work. Journal of Finance, 25(2), 383–417.
[10] Gunasekarage A, Power DM (2001). The profitability of moving average trading rules in South Asian stock markets. Emerging Markets Review, 2(1), 17–33.
[11] Harvey CR, Liu Y (2015). Backtesting. Journal of Portfolio Management, 42(1), 13–28.
[12] Harvey CR, Liu Y, Zhu H (2016). ... and the cross-section of expected returns. Review of Financial Studies, 29(1), 5–68.
[13] Lo AW (2004). The adaptive markets hypothesis. Journal of Portfolio Management, 30(5), 15–29.
[14] López de Prado M (2018). Advances in financial machine learning. 1st edition. Wiley.
[15] Mitra SK (2011). How rewarding is technical analysis in the Indian stock market? Quantitative Finance, 11(2), 287–297.
[16] Moskowitz TJ, Ooi YH, Pedersen LH (2012). Time series momentum. Journal of Financial Economics, 104(2), 228–250.
[17] National Stock Exchange of India (2026). Investor accounts cross the milestone of 26 crore (260 million). Press release, 7 June 2026. https://nsearchives.nseindia.com.
[18] Park CH, Irwin SH (2007). What do we know about the profitability of technical analysis? Journal of Economic Surveys, 21(4), 786–826.
[19] Securities, Exchange Board of India (2025). Safer participation of retail investors in algorithmic trading. SEBI circular dated 4 February 2025. https://www.sebi.gov.in.
[20] Securities, Exchange Board of India (2026). Studies on profitability of individual traders in the equity derivatives segment, FY26. Press Release No. 50/2026, 20 August 2026. https://www.sebi.gov.in.
[21] Sullivan R, Timmermann A, White H (1999). Data-snooping, technical trading rule performance, and the bootstrap. Journal of Finance, 54(5), 1647–1691.
[22] Thadikaran B (2026). eod2_data: end of day historical data for NSE stocks and indices. GitHub. https://github.com/BennyThadikaran/eod2_data.
[23] White H (2000). A reality check for data snooping. Econometrica, 68(5), 1097–1126.
How to cite this paper
@article{1725814,
author = {Ayush Yadav, Dr. Bhojraj Shewale},
title = {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},
journal = {Iconic Research And Engineering Journals},
year = {2026},
volume = {10},
number = {5},
pages = {6636-6651},
issn = {2456-8880},
url = {https://www.irejournals.com/formatedpaper/1725814.pdf},
abstract = {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.},
keywords = {backtesting, overfitting, technical analysis, Nifty 50, retail investors, algorithmic trading, deflated Sharpe ratio, India},
month = {November},
doi = {https://doi.org/10.64388/ire1725814}
}