What is a backtest, and how is it different from paper trading?
A backtest replays a written rule on past prices to see how it would have behaved, while paper trading follows the rule forward in real time with pretend money. Both use no real money. The difference is direction in time. A backtest can cover ten years in a minute, but it can also be fooled by data and decisions that were not available back then. Paper trading cannot look ahead by accident, but it takes months to collect a few dozen trades.
For an Indian retail investor the two work well together. Use a backtest to throw out ideas that never worked on past data, then paper trade the few that survive. Neither tells you what will happen next. A backtest is a question about the past: "if I had followed this rule, what would have happened, after costs?"
You do not need to write code to ask that question. The MarketDeck Research Desk lets you describe a rule in words or pick one of its starter ideas, then runs it on past Indian market data with paper money. [S1]
What are the parts of a backtest?
Every backtest has five parts: a rule, a universe, a rebalance schedule, costs and a result. If any one of them is vague, the result is vague too. The widget below walks through each part with one example rule.
The rule is the part people think about most, but the universe and the timing cause more mistakes. "Nifty 200 stocks" sounds precise, yet the Nifty 200 list today is not the list that existed five years ago. Companies that fell out of the index are missing from today's list, and companies that joined after rising strongly are in it. Our issue on survivorship and look-ahead bias shows how much that can flatter a result.
Timing matters for the same reason. If your rule uses a month's closing prices, the earliest you could act is the next trading session. A backtest that trades at the same closing price it used to make the decision has quietly given itself a head start.
How do you backtest a stock strategy without coding?
You write the rule in one plain sentence, choose a list of stocks and a schedule, state your costs, and let a tool do the arithmetic. Here is a simple way to work through it:
- Write the rule before you look at any chart. For example: "Each month, hold the 20 Nifty 200 stocks with the strongest 12-month return, leaving out the latest month."
- Choose the universe and say why. A narrower list such as the Nifty 100 holds larger, easier-to-trade companies; a wider list adds smaller companies and more noise.
- Pick the schedule: monthly, quarterly or yearly. More frequent changes mean more trades and more costs.
- Set costs for every trade, plus slippage. If you are unsure, use a higher figure rather than a lower one.
- Run it, then read the deepest fall and the number of trades before you read the return.
- Change one thing at a time and note each attempt. Ten attempts with one lucky winner is not the same as one attempt that worked.
On the Research Desk you can run a starter idea as it is, or ask Claude to write your own rule as a test once you connect Claude to MarketDeck. Our Claude MCP guide shows the sign-in steps and sample prompts.
Are equity and options backtesting tools the same?
No: equity backtests choose which stocks to hold, while options backtests have to price contracts that expire, and that needs different data. An equity rule needs daily prices, corporate actions such as splits and bonuses, and index membership. An options rule needs option prices or a model of them, strike and expiry details, lot sizes, margin rules and the way volatility changes. An equity tool cannot test an options strategy by pretending an option is a stock.
The Research Desk tests rules on stocks and indices. If you want to learn how option prices react to the underlying, volatility and time, the Options Greeks surface is a better place to start than any equity backtest.
How much do costs and slippage change a backtest?
Costs and slippage can turn a good-looking strategy into an ordinary one, because they are paid on every trade and compound every year. Costs are the brokerage, taxes and exchange charges on your contract note. Slippage is the gap between the price your rule assumed and the price you would really have got, which is larger for smaller, less traded stocks.
The widget uses made-up inputs: a strategy that earns 15% a year before costs and replaces part of the portfolio every month. Move the sliders to see how quickly small numbers add up.
The arithmetic is simple. With monthly rebalancing, replacing half the portfolio each time, and 0.1% cost plus 0.1% slippage on each side of a trade, the yearly drag is 12 × 0.5 × 2 × 0.2% = 2.4 percentage points. Over ten years that is the difference between about ₹4.05 lakh and ₹3.28 lakh from a ₹1 lakh start, before tax. Rules that trade less often lose less to costs, which is one reason slow rules are easier to trust.
How should you read a backtest result?
Read a backtest result from risk to return: deepest fall first, then the number of trades, then the comparison, and the headline return last. To take two made-up rules, one that returned 18% a year but fell 45% at its worst is a very different experience from one that returned 14% with a 20% worst fall.
| What to read | Question it answers |
|---|---|
| Deepest fall (maximum drawdown) | Could I have sat through the worst stretch? |
| Number of trades | Is the result built on many decisions or a handful? |
| Comparison with an index | Did the rule do anything an index fund would not? |
| Comparison with random portfolios | Could chance alone have done as well? |
| Return after costs | What was left after paying to trade? |
The last-but-one row is the one most backtests skip. Our strategy backtesting checklist covers the data and timing checks in more detail.
Why can one good backtest result be luck?
One good result can be luck because, over a strong period, many random choices of stocks would have done just as well. If the whole market rose, almost any list of stocks rose with it, and your rule gets credit it did not earn.
We measured this on MarketDeck's own data. From 3 October 2023 to 21 August 2026, 20,000 randomly chosen 30-stock portfolios from one Indian list returned between +46.7% and +113.8% in the middle 90% of cases. That list is today’s, applied to the past, so survivorship bias flatters these figures; they are a historical sample, not a recommendation. Any rule that returned, say, 80% over that window would sit in the middle of that crowd. Our issue on random portfolios against the Nifty explains the measurement and its limits.
That is why the Research Desk shows a luck check before any other figure. By default it builds 1,000 random portfolios from the same list, on the same schedule, with the same number of holdings and the same costs, and only the choice of stocks is random. It then reports where your rule sits among them, as a percentile. A high percentile is not proof that a rule works; a middling one is a strong hint that it did not add much. [S1]
What else do readers ask?
These are short answers to the questions readers ask most often about this topic.
Can I backtest stocks in India for free?
Yes. You can test simple rules with a spreadsheet and downloaded prices, and the MarketDeck Research Desk runs tests on past Indian data with a free account, within daily and 30-day limits on run units.
Is a backtest the same as a prediction?
No. A backtest describes how a rule would have behaved on past data. Markets change, and past results do not indicate future results.
How many trades does a backtest need?
There is no magic number, but a result built on a handful of trades says very little. More independent decisions, over different market conditions, give a result more weight.
Should I include costs in a backtest?
Always. Include brokerage, taxes, exchange charges and slippage on every trade. A backtest without costs describes a market that does not exist.
THE EVIDENCE DESK
Sources and scope
Third-party facts are linked to the page we opened. Widgets marked “Illustrative, simulated data” use made-up inputs; real figures name their source and window.
- S1 MarketDeck Research Desk guide ↗
MarketDeck’s own product page (PR #265). Luck-check defaults (1,000 random portfolios, same list, schedule, holdings and costs), daily run units and access as described there and in the Desk’s own server instructions on 27 Nov 2026. Opened 2026-11-27.
This is AI-assisted educational writing published by MarketDeck. Sources were opened and widget arithmetic tested during preparation. No named human expert review or professional credential is claimed. Read our editorial standards and limitations.