BacktestIndia: Free Tax-Aware Backtesting Tool for Factor Investing on NSE Stocks (18+ Years Data)
BacktestIndia is India's only backtesting platform with automatic LTCG/STCG tax calculations. Test momentum, low volatility, quality, and value factor strategies on 18+ years of NSE data covering 500+ stocks — including delisted companies. No coding required. Start free with 10 backtests per month.
⚡ What Is BacktestIndia?
BacktestIndia is a free, no-code backtesting platform for testing factor-based equity investing strategies on 500+ NSE-listed Indian stocks using 18+ years of data (Dec 2006–Dec 2025). It is the only Indian platform with automatic LTCG/STCG tax calculations built into the backtest engine — showing both gross and net-of-tax returns. Test 14 factors (momentum, low volatility, ROE, P/E, P/B, and more) with sequential filtering or Z-score composites. 10 free backtests/month, Premium at ₹399/month.
📚 Part of Our Factor Investing Research: This tool guide accompanies our published backtest studies. See the complete Factor Investing India: Complete Guide for strategy comparisons and research findings.
Published Studies: Low Volatility | Momentum | Quality-Momentum | Multi-Factor | Value-Quality
📊 BACKTESTINDIA AT A GLANCE
| Feature | Details |
|---|---|
| Data Coverage | 18+ years (Dec 2006–Dec 2025), 500+ NSE stocks including delisted companies |
| Factor Filters | 14 factors: Low Volatility, Momentum, ROE, P/E, P/B, Market Cap, Debt/Equity, Revenue Growth, Earnings Growth |
| Tax Calculations | Automatic LTCG (12.5%) + STCG (20%) per Finance Act 2024, with ₹1.25L annual exemption |
| Cost Modeling | 0.11% transaction costs + 0.05% slippage per trade (STT, exchange fees, SEBI charges, GST, brokerage) |
| Strategy Construction | Sequential multi-factor filtering OR Z-score composite scoring with custom weights |
| Weighting Schemes | Equal Weight, Market-Cap Weight, Inverse Volatility Weight |
| Rebalancing Options | Monthly, Quarterly, Semi-Annual, Annual |
| Output Metrics | CAGR (Gross + Net), Volatility, Max Drawdown, Recovery Time, Sharpe, Sortino, Calmar, Rolling Returns |
| Coding Required? | No — fully visual, no-code interface |
| Free Tier | 10 backtests/month, 5 pre-built templates, Nifty 50 benchmark |
| Premium | ₹399/month — unlimited backtests, all 14+ parameters, custom factor combinations |
📑 Table of Contents
- What Is BacktestIndia? (And Who Is It For?)
- The Problem: Why Indian Investors Need a Tax-Aware Backtesting Tool
- Core Features: What Makes BacktestIndia Different
- How It Works: Step-by-Step Walkthrough
- Factor Filters: 9 Academically-Backed Strategies
- The Tax Engine: Automatic LTCG/STCG Calculations
- Comparison: BacktestIndia vs Other Indian Backtesting Tools
- Published Research Results (5 Strategies, 18+ Years)
- Pricing: Free Tier vs Premium
- Frequently Asked Questions
What Is BacktestIndia? (And Who Is It For?)
Direct Answer: BacktestIndia is a free, web-based platform that simulates how rules-based factor investing strategies would have performed on NSE-listed Indian stocks over the past 18+ years. You define a strategy by selecting factors (like low volatility, momentum, or ROE), set your parameters, and the engine replays history — buying and selling stocks at each rebalance date, deducting real transaction costs, slippage, and India-specific LTCG/STCG taxes. The output tells you exactly how much wealth the strategy would have created after all costs.
Unlike options backtesting tools (algo trading and options-focused platforms) or technical analysis platforms (charting and rule-based trading tools), BacktestIndia focuses exclusively on factor-based equity investing — the same systematic approach used by institutional investors, pension funds, and smart beta ETFs worldwide.
BacktestIndia is built for:
- Self-directed equity investors who want to test "buy low volatility" or "buy high momentum" strategies before committing capital
- Factor investing learners exploring systematic strategies as an alternative to discretionary stock-picking
- Tax-conscious investors who need to understand the real after-tax impact of different rebalancing frequencies
- Finance students and researchers studying quantitative investing in Indian markets
- SEBI-registered advisers who want to illustrate factor strategy performance to clients with tax-aware projections
📺 Platform Walkthrough Video: Watch a 10-minute demo covering how to use BacktestIndia, interpret results, and compare strategies.
The Problem: Why Indian Investors Need a Tax-Aware Backtesting Tool
Most retail investors in India face three critical gaps when evaluating systematic strategies:
Gap 1: No Tax-Aware Backtesting Exists
India's capital gains tax structure creates significant drag on active strategies. Short-term gains (holdings under 1 year) are taxed at 20%, while long-term gains are taxed at 12.5% with a ₹1.25 lakh annual exemption. Yet virtually every backtesting platform — global or Indian — shows only pre-tax returns. This means a strategy showing "15% CAGR" might actually deliver 11-12% after Indian taxes, depending on turnover. Without tax-aware results, investors systematically overestimate their expected returns by 10-25%.
Gap 2: Options-Heavy, Factor-Light
India's backtesting ecosystem is dominated by options and technical analysis tools. Popular Indian algo and options trading platforms are excellent for options strategies — but offer no support for factor-based equity investing (momentum, value, quality, low volatility). If you want to test "buy the 30 lowest-volatility large-cap stocks and rebalance annually," no mainstream Indian tool could do this before BacktestIndia.
Gap 3: Survivorship Bias
Most Indian stock screeners and backtesting tools use only currently-listed stocks. This excludes companies that went bankrupt, delisted, or were acquired at poor prices during the backtest period — creating an upward bias in results. BacktestIndia's dataset includes 500+ stocks that traded on NSE since December 2006, including those subsequently delisted, to minimize this distortion.
Core Features: What Makes BacktestIndia Different
1. Automatic Indian Tax Calculations (LTCG + STCG)
This is BacktestIndia's most important differentiator. Every backtest automatically calculates capital gains taxes per the Finance Act 2024:
- LTCG (Long-Term Capital Gains): 12.5% tax on gains above ₹1.25 lakh per year for stocks held more than 1 year
- STCG (Short-Term Capital Gains): 20% tax on gains from stocks held less than 1 year
- Individual holding period tracking: Every stock position is tracked individually to classify gains correctly
- Tax loss set-off: Short-term losses offset short-term gains; long-term losses offset long-term gains; excess losses carry forward
- ₹1.25 lakh exemption: Applied before computing LTCG liability each year
The result is two separate performance numbers: Gross CAGR (pure strategy alpha) and Net CAGR (actual take-home return). The difference reveals the true cost of implementing a strategy in India.
Why this matters: BacktestIndia's research shows that annual rebalancing delivers a 0.44% CAGR advantage through LTCG treatment compared to monthly rebalancing — purely from tax efficiency. Over 18 years, that compounds to 8% more terminal wealth. Without tax-aware backtesting, you cannot make this comparison. See our detailed LTCG vs STCG Tax Impact Analysis.
2. 18+ Years of NSE Data (Including Delisted Stocks)
The platform covers December 2006 through December 2025 — spanning multiple complete market cycles: the 2007-2008 bull run and crash, the 2010-2013 sideways market, the 2014-2017 Modi rally, the 2020 COVID crash and recovery, and the 2022-2023 global tightening cycle. The dataset includes 500+ stocks, with companies that delisted during this period still present in historical calculations. Data is sourced from EODHD Financial APIs.
3. Sequential Multi-Factor Filtering
Rather than picking stocks randomly or using a single criterion, BacktestIndia lets you apply factor filters using a sequential filtering methodology that processes criteria in ordered layers. For example: start with the top 500 stocks by market cap → filter down to the 200 with lowest volatility → select the 60 with highest momentum → pick the final 30 with highest ROE. Each step narrows the universe based on a different quality, creating portfolios that combine multiple desirable characteristics.
4. Z-Score Composite Scoring
As an alternative to sequential filtering, you can combine multiple factors into a single composite score using Z-score normalization. Each factor is standardized to the same scale, weighted by your chosen percentages (e.g., 40% momentum + 30% ROE + 30% inverse P/E) — with an optional scaled turnover anti-speculation filter — and stocks are ranked by their composite score. This approach ensures no single factor dominates simply because it has larger raw numbers.
5. Realistic Cost Modeling
Every backtest applies 0.11% transaction costs per trade (covering STT, exchange fees, SEBI charges, GST, and brokerage) plus 0.05% slippage per trade for market impact. A round-trip trade costs approximately 0.32% of the transaction value — intentionally conservative to avoid over-optimism.
6. No Coding Required
BacktestIndia is entirely point-and-click. Select parameters from dropdowns, adjust sliders, and run backtests. No Python, R, or Excel formulas needed. Free users run pre-built templates with one click. Premium users customize all 14+ parameters through the same visual interface.
How It Works: Step-by-Step Walkthrough
Time required: Under 5 minutes for your first backtest.
Step 1: Choose a Strategy Template (or Build Custom)
Visit backtestindia.streamlit.app and select from 5 pre-built templates. Each template comes pre-configured with academically-backed factor parameters. Free users can run any template; Premium users can modify all parameters.
- Low Volatility: 30 least volatile stocks from top 100 by market cap
- Momentum: 30 highest momentum stocks (12M return minus last month)
- Quality-Momentum: High ROE + low debt → top momentum within quality subset
- Multi-Factor Blend: Z-score composite of momentum + quality + value
- Value-Quality: Low P/E + Low P/B combined with high ROE
Step 2: Set Parameters
Configure your backtest date range (Dec 2006–Dec 2025), initial capital (default ₹50 lakhs), rebalancing frequency (annual recommended for tax efficiency), and market cap universe (Top 100, 200, or 500 stocks). Premium users additionally set the number of stocks to hold, weighting scheme, and custom factor combinations.
Step 3: Run and Analyze Results
Click "Run Backtest." The engine processes every rebalance event — buying, selling, tracking holding periods, applying transaction costs, slippage, and LTCG/STCG taxes. Results appear in seconds, showing:
- Performance Dashboard: Gross CAGR, Net CAGR, total wealth created, benchmark comparison
- Equity Curve: Visual growth chart with strategy vs Nifty 50 overlay
- Risk Metrics: Annual volatility, maximum drawdown, recovery time, Sharpe ratio, Sortino ratio, Calmar ratio
- Drawdown Chart: Peak-to-trough decline visualization across all market crises
- Rolling Returns: Consistency analysis across different entry points
- Tax Breakdown: Total LTCG and STCG paid, effective tax drag on CAGR
- Transaction Log: Every buy, sell, and rebalance with costs applied
Step 4: Iterate
Modify parameters and re-run. Test different rebalancing frequencies to compare tax impact. Change the market cap universe. Add or remove factor filters. Each iteration takes seconds, allowing rapid comparison of strategy variations.
Factor Filters: 9 Academically-Backed Strategies You Can Test
BacktestIndia implements 9 factor filters, each grounded in decades of peer-reviewed academic research. These can be used individually, sequentially, or combined via Z-score composites.
| Factor | What It Measures | Direction | Academic Basis |
|---|---|---|---|
| Low Volatility | 12-month daily price standard deviation | Lower is better | Betting-Against-Beta anomaly (Frazzini & Pedersen) |
| Momentum | 12-month price return minus last month | Higher is better | Jegadeesh & Titman 1993 |
| ROE | Return on Equity | Higher is better | Quality factor (Novy-Marx 2013) |
| P/E Ratio | Price-to-Earnings | Lower is better (value) | Fama & French 1992 |
| P/B Ratio | Price-to-Book | Lower is better (value) | Fama & French 1992 |
| Market Cap | Total market capitalization | Configurable | Size factor (Fama & French) |
| Debt/Equity | Leverage ratio | Lower is better (quality) | Quality / financial distress risk |
| Revenue Growth | Year-over-year revenue growth | Higher is better | Growth factor |
| Earnings Growth | Year-over-year EPS growth | Higher is better | Growth factor |
How sequential filtering works in practice: Say you want a "Quality-Momentum" portfolio. You start with the top 200 stocks by market cap, filter down to the 60 with the highest ROE (quality screen), then select the 30 with the highest momentum from that quality subset. The result is a portfolio of 30 stocks that are both high-quality businesses and showing price momentum — systematically avoiding speculative, low-quality momentum plays.
The Tax Engine: How Automatic LTCG/STCG Calculation Works
This section explains the mechanics of BacktestIndia's tax calculation system — the feature that makes it unique among Indian backtesting tools.
How Taxes Are Applied in Each Backtest
At every rebalance date, the engine follows this sequence:
- Identify exits: Stocks no longer qualifying for the portfolio are sold
- Calculate holding period: Each exited stock's purchase date is compared to the sale date
- Classify gains: Held over 1 year → LTCG (12.5% tax, ₹1.25L exemption). Held under 1 year → STCG (20% tax, no exemption)
- Apply loss set-off: Short-term losses offset short-term gains first; long-term losses offset long-term gains first; excess losses carry forward
- Annual tax payment: In December each year, total tax liability is deducted from portfolio cash balance
The tax efficiency insight: Because annual rebalancing means all stocks are held for 12+ months, virtually all gains qualify for the lower LTCG rate (12.5% vs 20%) and benefit from the ₹1.25L annual exemption. This structural advantage — documented across 5 strategy backtests — saves approximately 0.44% CAGR per year compared to monthly rebalancing.
| Rebalancing Frequency | Dominant Tax Treatment | Typical Annual Tax Drag |
|---|---|---|
| Monthly | STCG (20%) | 1.5–3.0% of CAGR |
| Quarterly | Mixed STCG/LTCG | 0.8–1.5% of CAGR |
| Semi-Annual | Mostly LTCG | 0.5–0.8% of CAGR |
| Annual | Almost all LTCG (12.5%) | 0.3–0.5% of CAGR |
Comparison: BacktestIndia vs Other Indian Backtesting Tools
Direct Answer: BacktestIndia is the only Indian platform purpose-built for factor-based equity backtesting with tax-aware results. Other Indian tools focus on options trading and technical analysis. Global portfolio tools don't model Indian tax rules. Here's how they compare:
| Feature | BacktestIndia | Algo/Options Platforms | Options Trading Tools | Global Portfolio Tools |
|---|---|---|---|---|
| Primary Focus | Factor-based equity investing | Algo / technical trading | Options backtesting | Global portfolio allocation |
| Indian Tax (LTCG/STCG) | ✅ Automatic calculation | ❌ | ❌ | ❌ |
| Factor Filters (Momentum, Value, Quality) | ✅ 14 factors + Z-score | ❌ Technical indicators only | ❌ | ❌ |
| NSE Historical Data | 18+ years (2006–2025) | Varies (mostly options data) | Options chain data | ❌ No Indian stocks |
| Delisted Stocks Included | ✅ 500+ stocks | ❌ | ❌ | N/A |
| Multi-Factor Combinations | ✅ Sequential + Z-score | ❌ | ❌ | ❌ |
| No Coding Required | ✅ | ✅ | ✅ | ✅ |
| Free Tier | 10 backtests/month | 25 strategies/week | 20 free credits | Limited free |
| Premium Price | ₹399/month | ₹690+/month | ₹700+/month | $359/year |
Key takeaway: If you want to test options strategies or intraday technical setups, dedicated algo and options trading platforms are better choices. If you want to test systematic equity factor strategies (buy-and-hold approaches like momentum, value, low volatility) with realistic Indian tax impact, BacktestIndia is the only tool that supports this.
Published Research Results: 5 Strategies Tested Over 18+ Years
BacktestIndia has published 12 research articles — see all published factor investing backtests — testing 5 factor strategies over 18+ years of NSE data. All results include LTCG/STCG tax calculations, transaction costs, and slippage — including crisis performance across India's five major market downturns. Here's a summary of the key findings:
| Strategy | Net CAGR (After Tax) | Nifty 50 CAGR | Alpha | Max Drawdown | Sharpe Ratio | Research Link |
|---|---|---|---|---|---|---|
| Quality-Momentum | 17.95% | 10.42% | +7.53% | -61.70% | ~0.62 | Read → |
| Multi-Factor Blend | 14.61% | 10.42% | +4.19% | ~-55% | ~0.48 | Read → |
| Momentum | 14.01% | 10.42% | +3.59% | -70% | ~0.38 | Read → |
| Low Volatility | 12.38% | 10.42% | +1.96% | -44.46% | ~0.45 | Read → |
| Value-Quality | 11.38% | 10.42% | +0.96% | ~-50% | ~0.36 | Read → |
Key research finding: Annual rebalancing outperforms monthly rebalancing by approximately 0.44% CAGR per year across all 5 strategies — attributable purely to the tax efficiency of holding stocks for 12+ months (LTCG at 12.5% vs STCG at 20%). This finding is detailed in our LTCG vs STCG Tax Impact Analysis.
Additional research: Our Lost Decade analysis tested the Low Volatility strategy across 102 rolling 10-year entry points — it beat Nifty 50 in 100% of periods. Our Momentum Liquidity Premium study showed that all momentum alpha lives in low-turnover (illiquid) stocks — high-turnover momentum stocks actually underperformed Nifty 50.
Pricing: Free Tier vs Premium
| Feature | Anonymous Guest | Free Account | Premium (₹399/month) |
|---|---|---|---|
| Backtests | 3/day | 10/day | Unlimited |
| Strategy Templates | 5 templates | 5 templates | All templates |
| Custom Parameters | No | No | Yes (all 14+ params) |
| Factor Filter Builder | No | No | Yes |
| Z-Score Composite | No | No | Yes |
| Weighting Scheme | Equal Weight only | Equal Weight only | All 3 schemes |
| Rebalancing Frequency | Annual only | Annual only | All frequencies |
| Benchmark Selection | Nifty 50 only | Nifty 50 only | All indices |
| Stock-Level Data | Hidden | Hidden | Historical snapshot |
Is the free tier enough? If you want to understand how factor investing strategies performed historically in India with tax-aware results, the free tier with 5 pre-built templates provides complete analysis including equity curves, drawdown analysis, rolling returns, and Nifty 50 comparison. Premium is for users who want to build custom multi-factor strategies, test different weightings, or experiment with factor combinations.
Try BacktestIndia Free
Test factor investing strategies on 18+ years of NSE data with automatic LTCG/STCG tax calculations. No coding required. No credit card needed.
- 5 pre-built strategy templates (Low Volatility, Momentum, Quality-Momentum, Multi-Factor, Value-Quality)
- 10 free backtests per month
- Full tax-aware results with Nifty 50 benchmark comparison
- Equity curves, drawdown analysis, rolling returns, Sharpe ratio
Tax-Aware Engine | 18+ Years NSE Data | 500+ Stocks | No Coding Required
Frequently Asked Questions
What is BacktestIndia?
A: BacktestIndia is a free, web-based backtesting platform for testing factor-based equity investing strategies on NSE-listed Indian stocks. It covers 18+ years of historical data (December 2006–December 2025) for 500+ stocks including delisted companies, and is the only Indian platform with automatic LTCG/STCG tax calculations. No coding is required. Start with 10 free backtests per month.
Is there a free backtesting tool for Indian stocks?
A: Yes. BacktestIndia offers 10 free backtests per month using 5 pre-built factor investing strategy templates. The free tier includes full tax-aware results, equity curves, drawdown analysis, rolling returns, and Nifty 50 benchmark comparison. Anonymous guests can run 3 backtests per day without creating an account. Premium access (₹399/month) adds unlimited backtests and custom parameters.
Which backtesting tool calculates Indian LTCG and STCG taxes automatically?
A: BacktestIndia is currently the only Indian backtesting platform with built-in LTCG/STCG tax calculations per the Finance Act 2024. It applies 12.5% LTCG (with ₹1.25 lakh exemption) for holdings over 1 year and 20% STCG for holdings under 1 year. Every stock position's holding period is tracked individually, with tax loss set-off rules applied automatically.
What factors can I test on BacktestIndia?
A: BacktestIndia supports 9 factor filters: Low Volatility, Momentum (12-month return minus last month), ROE, P/E Ratio, P/B Ratio, Market Cap, Debt/Equity, Revenue Growth, and Earnings Growth. Factors can be applied sequentially (cascade filtering where each stage narrows the universe) or combined using Z-score composite scoring with custom weights.
How is BacktestIndia different from other Indian backtesting tools?
A: BacktestIndia focuses on factor-based equity investing (momentum, low volatility, quality, value strategies for buy-and-hold portfolios), while other popular Indian platforms focus on options and technical analysis backtesting. BacktestIndia's unique features are automatic Indian tax calculations, 18+ years of NSE data including delisted stocks, 9 fundamental/price factor filters, and Z-score multi-factor composites. It is not designed for options or intraday strategies.
Does BacktestIndia require programming knowledge?
A: No. BacktestIndia is a fully visual, no-code platform. Free users select from pre-built templates and run backtests with one click. Premium users customize all parameters through dropdowns and sliders. No Python, R, or any programming is needed.
How accurate are the backtest results?
A: BacktestIndia models real-world frictions: 0.11% transaction costs per trade (STT, exchange fees, SEBI charges, GST, brokerage), 0.05% slippage per trade, and full LTCG/STCG tax calculations. The dataset includes delisted companies to minimize survivorship bias. However, all backtests are hypothetical simulations of past data — past performance does not predict future results. This is an educational tool, not investment advice.
What is the best rebalancing frequency for Indian stocks?
A: Annual rebalancing is optimal for most factor strategies in India. BacktestIndia's research across 5 strategies over 18 years shows annual rebalancing saves ~0.44% CAGR per year compared to monthly rebalancing — because annual holding periods qualify for LTCG (12.5% tax) rather than STCG (20% tax), plus the ₹1.25 lakh annual LTCG exemption provides additional shelter.
How much does BacktestIndia cost?
A: BacktestIndia offers a free tier with 10 backtests per month and 5 pre-built templates. The Premium plan at ₹399 per month includes unlimited backtests, all 14+ customizable parameters, factor filter builder, Z-score composites, all weighting schemes, all rebalancing frequencies, and stock-level data.
Who built BacktestIndia?
A: BacktestIndia was built by T. Desai, a systematic investing researcher with 10+ years of financial research experience. The research methodology is trained and guided by Prof. Mayank Joshipura, PhD — Vice Dean-Research and Professor of Finance at NMIMS University, Mumbai. The platform holds Government of India Copyright Registration No. SW-2025021891.
⚠️ EDUCATIONAL TOOL DISCLAIMER
EDUCATIONAL TOOL ONLY: BacktestIndia is a statistical educational tool. All backtests represent hypothetical simulations using historical data. Past performance does not predict future results. No liability for calculation errors or data inaccuracies.
NOT INVESTMENT ADVICE: BacktestIndia does not provide personalized investment advice or recommendations. It is exempt under SEBI (Investment Advisers) Regulations 2013, Regulation 3(1)(d). All output is general educational content.
CONSULT PROFESSIONALS: Before implementing any strategy with real capital, consult a SEBI-registered Investment Adviser. Find SEBI-RIA →
About BacktestIndia
Platform: BacktestIndia.com
Launch App: backtestindia.streamlit.app
Data: EODHD Financial APIs (December 2006 – December 2025)
Coverage: 500+ NSE-listed stocks including delisted companies
Tax Compliance: Finance Act 2024 (LTCG 12.5%, STCG 20%)
SEBI Status: Educational tool, exempt under IA Regulations 2013, Reg. 3(1)(d)
Copyright: © 2025 T. Desai. Government of India Copyright Certificate No. SW-2025021891
Contact: backtestindia@gmail.com
📚 Explore Our Research
All research below was generated using BacktestIndia's engine with the same tax-aware methodology:
- Factor Investing India: Complete Guide — Compare all 5 strategies side by side
- Low Volatility Backtest — 12.38% CAGR, -44% drawdown, 8.5x faster recovery
- Momentum Backtest — 14.01% CAGR, -70% drawdown, aggressive growth
- Quality-Momentum Backtest — 17.95% CAGR, anti-speculation filter
- Multi-Factor Backtest — 14.61% CAGR, highest Sharpe ratio
- Value-Quality Backtest — 11.38% CAGR, tax drag analysis
- Rolling Returns Analysis — 102 entry points tested, 100% win rate
- LTCG vs STCG Tax Impact — 0.44% annual advantage from annual rebalancing
- Momentum Liquidity Premium — Why momentum alpha lives in illiquid stocks
- How the Engine Works — Technical deep-dive into sequential filtering and Z-score scoring
- Nifty 50 vs Next 50 — 26-year comparison with rolling returns
- Drawdown-Resistant Strategies — Crisis analysis across 2008, 2020, 2022