---
title: "What Is Backtest? Meaning and Example | RupeeCase"
description: "A backtest is a simulation that applies a set of investment rules to historical data to see how they would have performed. Common misreadings explained."
source_url: "https://www.rupeecase.com/learn/glossary/backtest"
---

**In one line.** Simulation of a strategy on historical data to estimate past performance. Useful for validation but does not guarantee future results.

## backtest, explained

To run one, the rules must be written exactly: which stocks qualify, how they are ranked, how many are held, how they are weighted and when they are exchanged. The program then steps through history one date at a time, using only the data known on that date, applies the rules, records the trades and adds up the results. Careful tests deduct costs such as brokerage, taxes and an allowance for price impact, since a test without costs flatters the outcome.

A backtest is useful as a filter and as a description. It shows how much a rule might lose in the worst stretch, how often it trades, and whether its returns came from a few lucky years. It also lets rules be compared on the same data. Stronger evidence comes from testing on a period the design never saw, known as out of sample testing, or from checking that the rule works in several markets and not only one.

The main danger is overfitting. If 100 variations of a rule are tried on the same history, about 5 will look significant at the usual 5 percent level by chance alone, and picking the winner mistakes luck for skill. Other traps include lookahead bias, survivorship bias and unrealistic costs. A backtest also assumes the future resembles the past, and it cannot capture how markets respond once many people trade the same rule. Its figures are estimates, not forecasts.

## A worked example

An illustration: a rule is tried with 20 combinations of lookback period and number of stocks. The top combination shows 16 percent a year over 10 years against 12 percent for the index. But 20 tries were made, so the winner is the top of 20; the typical combination returned 12.5 percent. Re-running the winning setting on the next 3 years, unseen when it was chosen, gives 12.8 percent. The gap between 16 and 12.8 shows how much of the headline came from selection. A fair report shows all 20 results, not only the top one.

## Common misreadings

* A backtest result is not a forecast; it describes how rules behaved on past data and offers no assurance about the future.
* A higher backtested return does not mean a stronger rule: it may come from overfitting, hidden costs or a lucky period.

## In the RupeeCase app

The app calls it “Model history”. Every figure on the Marketplace and on a strategy page. Shown in Basic and Advanced.

**How the app works it out.** The app calls its back test "Model history": the strategy's rules run on past weekly prices, after estimated charges, on a notional ₹10,00,000.

Watch: [Model vs yours](/learn/terminal/model-history-vs-your-portfolio), [Performance disclosure](/learn/terminal/performance-disclosure).

What makes a backtest unreliable?Common causes are lookahead bias, survivorship bias, ignored costs, too many rule variations tried on the same data and a short or one sided history. Each inflates the apparent result without adding anything real.

What is out of sample testing?It means checking a rule on data that was held back while the rule was designed. If the rule only works on the period used to build it, the result is probably overfitted. Passing on fresh data adds some confidence, not certainty.

LWhere Learn uses it

## 6 modules that teach with backtest.
[Module 2.4How Backtesting Works9 min, Path 02](/learn/path-2/module-2-4-how-backtesting-works)[Module 1.2Understanding Stock Data13 min, Path 01](/learn/path-1/module-1-2-understanding-stock-data)[Module 1.3Indices & Benchmarks14 min, Path 01](/learn/path-1/module-1-3-indices-and-benchmarks)[Module 1.5Orders, Costs & Taxation13 min, Path 01](/learn/path-1/module-1-5-orders-costs-taxation)[Module 2.1Why Rules Beat Gut Feeling10 min, Path 02](/learn/path-2/module-2-1-why-rules-beat-gut-feeling)[Module 2.2Introduction to Factors10 min, Path 02](/learn/path-2/module-2-2-introduction-to-factors)

GRelated terms

## Read next.
[Glossarylookahead biasMistake of using data in a backtest that would not have been available at the time of the](/learn/glossary/lookahead-bias)[Glossarysurvivorship biasOnly testing on stocks that still exist today, ignoring delisted companies. Inflates](/learn/glossary/survivorship-bias)[Glossarytransaction costAll costs of trading including brokerage, STT, exchange charges, GST, and slippage](/learn/glossary/transaction-cost)[Glossaryequity curveChart of portfolio value over time. The shape reveals consistency of returns and the depth](/learn/glossary/equity-curve)[Glossarysystematic investingApproach where selection, weighting, rebalancing, and exit rules are defined upfront and](/learn/glossary/systematic-investing)[GlossaryslippageDifference between expected trade price and actual execution price. Real-world trading](/learn/glossary/slippage)[GlossarydrawdownThe peak-to-trough decline during a specific period. If a portfolio falls from ₹10L to](/learn/glossary/drawdown)[GlossaryCAGRCompound Annual Growth Rate. The yearly rate at which an investment would have grown if it](/learn/glossary/cagr)[GlossaryalphaHow far a return was ahead of or behind its benchmark. A strategy that returned 20 percent](/learn/glossary/alpha)

[All 230 terms in the glossary](/learn/glossary)

      Community

## Join my WhatsApp group.

      Scan the code, fillFill one short form, and join my WhatsApp group. Slides, sources, factsheets and the rebalance logs live there, and members join a daily Google Meet with me.

      New to RupeeCase? [Getting started](/getting-started) [See the terminal](/terminal)

        [Start free](https://invest.rupeecase.com/signup)
        [Join the WhatsApp group](https://forms.gle/C6HMtM1Z2GfeocQV7)

      [One form, one group](https://forms.gle/C6HMtM1Z2GfeocQV7)Scan with your phone camera
