Educational • India-focused • Free

Learn to validate a trading strategy.

BacktestGyan is the definitive, free knowledge base on backtesting and quantitative strategy validation for the Indian market — performance metrics, robustness testing, backtesting biases, data quality and the research workflow. Every concept explained answer-first, with original diagrams, formulas and Indian-market examples. Validation science, never signals. Never a promise of profit.

What is backtesting? Backtesting is the process of simulating a fully-specified trading strategy on historical market data to estimate how it would have behaved, so you can study and falsify it before risking capital. Done honestly it needs clean point-in-time data, realistic costs, a benchmark and out-of-sample validation. It is a hypothesis test that reduces uncertainty — not a prediction of future profit.

Why backtesting matters

Backtesting is the cheapest way to falsify a bad idea — before it costs real money — and the only way to quantify a strategy's risk before you live it. Done badly, it is worse than nothing, because a flattering equity curve breeds false confidence. The whole craft is telling an honest test from a lying one.

Falsify cheaply

If an idea loses money even on the friendliest slice of history, it is almost certainly not worth trading. What is backtesting? →

Measure the risk

Drawdown, Sharpe and expectancy tell you how much pain earned the return. Maximum drawdown →

Test that it's real

Walk-forward and out-of-sample testing separate a stable edge from a lucky curve-fit. Walk-forward analysis →

Common myths about backtesting

The beliefs that sink more retail strategies than any market ever did.

Myth: A great backtest means a great strategy.

Reality: A backtest can be tuned to look brilliant on noise and still fail live. Only out-of-sample and forward results carry real evidence.

Myth: A higher win rate is a better system.

Reality: Win rate ignores the size of wins and losses. A 70% win rate can still lose money if the losers are large enough. Expectancy is what counts.

Myth: More data and more optimisation always help.

Reality: Optimising over all your data leaves nothing to validate on, and more parameters make overfitting easier, not the edge stronger.

Myth: If it worked for ten years, it will keep working.

Reality: Markets change regime, liquidity and microstructure. Past robustness is evidence, never a guarantee; that is why forward testing exists.

Choose your learning track

Beginner roadmap

New to backtesting? Build the foundation.

Intermediate roadmap

Know the basics? Measure and validate.

Featured concepts

The ideas that decide whether a backtested edge survives contact with the market.

Run the numbers

Free, private, in-browser calculators — measure your edge, its risk-adjusted return and its worst drawdown.

Frequently asked questions

What is backtesting?
Backtesting is simulating a fully-specified trading strategy on historical market data to estimate how it would have behaved, so you can study and falsify it before risking real capital. It is a hypothesis test that reduces uncertainty — never a prediction of future profit.
Why do most backtests fail in live trading?
Usually because of overfitting to historical noise, look-ahead or survivorship bias in the data, ignoring realistic costs and slippage, or a market regime change after the test window. Out-of-sample and walk-forward validation plus forward testing exist to catch these before capital is at risk.
Can a good backtest guarantee profits?
No. A backtest describes only the past you tested and rests on assumptions about data, costs and fills. Its real value is falsifying bad ideas cheaply and quantifying risk. No amount of backtesting removes uncertainty about the future.
What is the difference between in-sample and out-of-sample testing?
In-sample data is what you used to build and tune the strategy; out-of-sample data is untouched during design and used only to test. In-sample results flatter because the rules were shaped to that history, so out-of-sample (or walk-forward) performance is the honest estimate of a genuinely unseen future.
Educational content only — not investment advice. BacktestGyan is not a SEBI-registered adviser. Trading and derivatives carry a high risk of loss, and backtested or simulated results are hypothetical and do not represent actual trading. See our Risk Disclosure and SEBI Disclaimer.