GuidesMarch 12, 2026📖 30 min read

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.

👩‍💻

T. Desai

Trained and guided by Mayank Joshipura, PhD — Vice Dean-Research & Professor of Finance, NMIMS University

Founder of BacktestIndia. Systematic investing researcher specializing in factor investing, quantitative strategies, and Indian equity markets with 10+ years of financial research experience. About the author →

⚡ 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

FeatureDetails
Data Coverage18+ years (Dec 2006–Dec 2025), 500+ NSE stocks including delisted companies
Factor Filters14 factors: Low Volatility, Momentum, ROE, P/E, P/B, Market Cap, Debt/Equity, Revenue Growth, Earnings Growth
Tax CalculationsAutomatic LTCG (12.5%) + STCG (20%) per Finance Act 2024, with ₹1.25L annual exemption
Cost Modeling0.11% transaction costs + 0.05% slippage per trade (STT, exchange fees, SEBI charges, GST, brokerage)
Strategy ConstructionSequential multi-factor filtering OR Z-score composite scoring with custom weights
Weighting SchemesEqual Weight, Market-Cap Weight, Inverse Volatility Weight
Rebalancing OptionsMonthly, Quarterly, Semi-Annual, Annual
Output MetricsCAGR (Gross + Net), Volatility, Max Drawdown, Recovery Time, Sharpe, Sortino, Calmar, Rolling Returns
Coding Required?No — fully visual, no-code interface
Free Tier10 backtests/month, 5 pre-built templates, Nifty 50 benchmark
Premium₹399/month — unlimited backtests, all 14+ parameters, custom factor combinations

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:

📺 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:

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.

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:

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.

FactorWhat It MeasuresDirectionAcademic Basis
Low Volatility12-month daily price standard deviationLower is betterBetting-Against-Beta anomaly (Frazzini & Pedersen)
Momentum12-month price return minus last monthHigher is betterJegadeesh & Titman 1993
ROEReturn on EquityHigher is betterQuality factor (Novy-Marx 2013)
P/E RatioPrice-to-EarningsLower is better (value)Fama & French 1992
P/B RatioPrice-to-BookLower is better (value)Fama & French 1992
Market CapTotal market capitalizationConfigurableSize factor (Fama & French)
Debt/EquityLeverage ratioLower is better (quality)Quality / financial distress risk
Revenue GrowthYear-over-year revenue growthHigher is betterGrowth factor
Earnings GrowthYear-over-year EPS growthHigher is betterGrowth 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:

  1. Identify exits: Stocks no longer qualifying for the portfolio are sold
  2. Calculate holding period: Each exited stock's purchase date is compared to the sale date
  3. Classify gains: Held over 1 year → LTCG (12.5% tax, ₹1.25L exemption). Held under 1 year → STCG (20% tax, no exemption)
  4. Apply loss set-off: Short-term losses offset short-term gains first; long-term losses offset long-term gains first; excess losses carry forward
  5. 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 FrequencyDominant Tax TreatmentTypical Annual Tax Drag
MonthlySTCG (20%)1.5–3.0% of CAGR
QuarterlyMixed STCG/LTCG0.8–1.5% of CAGR
Semi-AnnualMostly LTCG0.5–0.8% of CAGR
AnnualAlmost 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:

FeatureBacktestIndiaAlgo/Options PlatformsOptions Trading ToolsGlobal Portfolio Tools
Primary FocusFactor-based equity investingAlgo / technical tradingOptions backtestingGlobal portfolio allocation
Indian Tax (LTCG/STCG)✅ Automatic calculation
Factor Filters (Momentum, Value, Quality)✅ 14 factors + Z-score❌ Technical indicators only
NSE Historical Data18+ years (2006–2025)Varies (mostly options data)Options chain data❌ No Indian stocks
Delisted Stocks Included✅ 500+ stocksN/A
Multi-Factor Combinations✅ Sequential + Z-score
No Coding Required
Free Tier10 backtests/month25 strategies/week20 free creditsLimited 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:

StrategyNet CAGR (After Tax)Nifty 50 CAGRAlphaMax DrawdownSharpe RatioResearch Link
Quality-Momentum17.95%10.42%+7.53%-61.70%~0.62Read →
Multi-Factor Blend14.61%10.42%+4.19%~-55%~0.48Read →
Momentum14.01%10.42%+3.59%-70%~0.38Read →
Low Volatility12.38%10.42%+1.96%-44.46%~0.45Read →
Value-Quality11.38%10.42%+0.96%~-50%~0.36Read →

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

FeatureAnonymous GuestFree AccountPremium (₹399/month)
Backtests3/day10/dayUnlimited
Strategy Templates5 templates5 templatesAll templates
Custom ParametersNoNoYes (all 14+ params)
Factor Filter BuilderNoNoYes
Z-Score CompositeNoNoYes
Weighting SchemeEqual Weight onlyEqual Weight onlyAll 3 schemes
Rebalancing FrequencyAnnual onlyAnnual onlyAll frequencies
Benchmark SelectionNifty 50 onlyNifty 50 onlyAll indices
Stock-Level DataHiddenHiddenHistorical 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
Start Free Backtesting →

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: