Running & Understanding Backtests
A backtest replays your rules against history, one rebalance at a time. This is how it decides when to trade, how the results page is laid out, and why a single CAGR can describe two years that felt nothing alike.
What You’ll Learn
By the end of this article, you’ll understand:
- What a backtest replays, and what it leaves out
- Why signals come from one day's close and trades from the next
- Why a backtest picks from each universe as it stood at the time
- How the results page is organised, and which tab answers what
- Why one CAGR can describe two very different years
- How Backtest History keeps every run of a strategy, and what Save As and Customize cost
- The four things a backtest cannot tell you
What a backtest actually is
A backtest replays your strategy against history, one rebalance at a time. On each scheduled date it re-runs universe, eligibility, ranking and selection using only the data available on that date — end-of-day prices adjusted for corporate actions, from 2021, as far back as your plan allows. Nothing is decided in the moment: if the rules said hold fifteen stocks on a day the market fell four percent, it held fifteen. It tests the rules, not you.
After Run Backtest, the result shows pending, then running, then fills in. A Quick Strategy runs free; a Custom Strategy Builder backtest spends one Strategy credit when you press Run Backtest.
When it decides to trade
This is where a carelessly built backtest can quietly lie to you.
One rebalance, on a strategy that rebalances on Mondays
- Friday's closeThe rules are evaluated against that day's end-of-day data
- Signals generatedWhich holdings leave, which candidates enter
- Monday's closeThose trades are filled at Monday's official closing price
Acting on the same close the signal came from would use information the rules could not have had in time — look-ahead bias, which flatters results without looking wrong on screen. So trades are never filled intraday or the instant a signal appears, but at the scheduled rebalance close. A strategy rebalancing on the 1st reads the previous trading day's close and trades at the 1st's.
Which stocks it can pick
A NiveshBuddy backtest picks from each universe as it stood on every rebalance date, not from today's list, and reads Trade-to-Trade status the same way. A company in the Top 200 in 2022 that later dropped out still counts in 2022; one that joined in 2025 isn't picked before then.
Today's list would leave out companies that faded (survivorship bias) and let the strategy buy today's winners early (look-ahead bias). Two consequences:
- A universe can only be tested from the date its membership history is verified. An earlier start is refused, so the builders offer only universes whose history covers the full data range.
- A simulation never had the problem. It moves forward a day at a time, on that day's list.
Six figures and a takeaway
The example is Midcap Climbers, a hypothetical Custom strategy — the top fifteen of the Mid Cap 150 on 6- and 12-month momentum, rebalanced monthly — tested 3 Nov 2021 to 3 Nov 2026 (the builder's Custom period). It shows how to read the page; it is not a strategy to copy.

| Card | What it shows |
|---|---|
| Score | 71/100 with the band Strong — the product's own summary, combining return quality, risk control, risk-adjusted return and consistency. A place to start a review, not a verdict to adopt |
| CAGR | Compound annual growth rate: the strategy's average yearly growth over the window: 15.70% |
| Benchmark | The Top 50 benchmark's CAGR over the same window: 5.96%, so "compared to what?" is answered before you scroll |
| Alpha | The gap between the two: +9.75% |
| Drawdown | The deepest fall below a previous high (Max, −29.04%) and how far below it the portfolio sat on an average day (Avg, −6.92%) |
| Sharpe | Risk-adjusted return: 0.86 |
Below the tabs, the Key takeaway puts the result into words. It describes this one backtest over one window; none of it is advice about whether a strategy suits you.
| Key takeaway line | Here |
|---|---|
| Headline | Grew faster than the Top 50 benchmark, with moderate falls. |
| What ₹5 lakh became, with its CAGR against the Top 50 benchmark's over the same dates | ₹10.36 lakh from 3 Nov 2021 to 3 Nov 2026; 15.70% against 5.96% |
| The worst fall, and the longest stretch below a previous high | 29.04%, from ₹5.24 lakh on 15 Nov 2021 to ₹3.72 lakh on 20 Jun 2022; 283 days |
| The Sharpe in words | Sharpe 0.86: moderate |
| When fewer than half the trades won: how the result was made | Wins 44% of trades; the average win is 2.3× the average loss, so a few big winners carry the result. |
| When something deserves a warning | Such as Spent over a year below a previous high at one point. |
On a computer, four buttons show; the rest are in ⋮ (More actions):
| Action | Where | What it does |
|---|---|---|
| Explain Results | Button | Replays a short guided tour of this page |
| Customize | Button | Reopens it in the Custom Strategy Builder with every setting editable; the re-run spends one Strategy credit |
| Explore Variations | Button | Starts an Experiment from this strategy, on plans that include Experiments |
| Start Simulation | Button | Begins a forward-looking Simulation — a deliberate step; a backtest never becomes one on its own |
| Save As | ⋮ menu | Copies the strategy under a new name. Free |
| Export | ⋮ menu | Downloads an HTML report of the result |
| Rename | ⋮ menu | Changes the strategy's name |
| Delete | ⋮ menu | Deletes the strategy |
On a phone only Start Simulation (and, on most phones, Explain Results) stays out of the ⋮ menu.
Five tabs, five questions
| Tab | The question it answers |
|---|---|
| Overview | What did the journey look like? |
| Performance | How good was it, and how evenly? |
| Trades | What actually happened, trade by trade? |
| Configuration | What exactly was tested? |
| Backtest History | How does this run compare with earlier runs of the same strategy? |
What each metric means, and how it misleads alone, is in Understanding Investment Performance & Risk Metrics.
Overview: the shape of the journey

The Equity Curve plots the strategy against the Top 50 benchmark; its range
buttons depend on the test's length (this five-year one offers 1Y, 3Y and ALL; a
two-year one would have no 3Y).
| Benchmark control | What it does |
|---|---|
| Benchmark dropdown | Top 50 (default), Top 200 or Top 500; swaps the comparison line on both charts. For a Mid Cap 150 strategy, a broader index compares it with more than the fifty largest companies |
| The strip under the Equity Curve | The chosen index over the same dates: Top 50 over this period: Total return +33.5% · CAGR 6.0% · Max drawdown −16.5% · Strategy ahead by 9.7% a year |
| What stays on the Top 50 | The Score, Benchmark and Alpha cards, Returns by Period and the Key takeaway; a note under the cards says so while another index is chosen |
The Drawdown Curve shows how far below its previous peak the strategy was at each moment. It ended well ahead of the Top 50, yet fell close to 30% in its first year against the benchmark's 16.5% — what holding it felt like.
Performance: where the average comes apart
Key Metrics sets out eighteen figures in four groups — Growth, Risk & Drawdowns, Quality of Returns and Portfolio Behavior — each with an ⓘ; How to read this result walks through them worst stretch first, then growth, consistency, evidence, and costs and limits. Returns by Period shows the last 1, 3 and 5 years against the Top 50 benchmark: whether the strategy kept working.

Monthly Returns is the most revealing part: consistency tiles (56% of months positive, five of six years) and a heatmap of every month with an Annual column, where a headline figure comes apart.
The same strategy, two years apart
2023
- The rules, unchanged
- Eight positive months of twelve
- A best month of +10.87%, in December
+46.13%
annual return
2025
- The same rules, still unchanged
- Seven positive months of twelve
- January alone gave back 12.76%
+6.42%
annual return
Same rules, nearly as many positive months, and one annualised number stands in for both. Read any headline return as an average of years that may have looked nothing alike.
Trades: what actually happened

The Trade Log lists every trade's dates, prices, return and status, with search and Export CSV. Columns adds hidden ones, among them Entry Reason and Exit Reason (why — a rank drop, a stop being hit), Holding Period, Return (Net% /Abs) and Transaction Cost.
This backtest made 358 completed trades (the 373 rows include positions open at the end) at a 0.1% cost on every entry and exit; the default is zero. The net-return column shows what costs took — re-running with a cost you would pay is a cheap sanity check.
Configuration: what was actually tested

The Configuration tab echoes the settings in the builder's four groups — what was actually tested, not what you meant to: the period, the starting amount and Transaction Cost (each entry & exit), a figure you set, not a NiveshBuddy fee.
Backtest History: every run of the strategy
Each re-run — after a Customize, say — becomes the Current result; earlier ones are kept.

Each row lists Stocks / Exit rank, Rebalance, Moving Averages and ROC Filters. Here only Exit Rank changed, 25 to 30, and the older run has the higher CAGR (16.34% against 15.70%): a re-run becomes Current whether or not it scores higher.
An opened older run is marked Viewing, under a banner: simulations and edits use the current version; the ⋮ menu then offers only Save As and Export, and Back to current returns you. Tick two or three completed runs and press Compare selected to see on Compare Results what a single change did.
What a backtest cannot tell you
Four honest boundaries
It is not a prediction
A backtest says what the rules would have done in conditions that have already happened. It says nothing about whether those conditions return, and historical results do not guarantee future performance.
It counts only the cost you entered
Transaction Cost is yours to set — charged on each entry and each exit — and it defaults to zero. It is the only cost the model takes. Slippage, market impact, taxes and how your broker actually fills an order are not modelled. The gap between a backtest and a real account lives largely here.
It ran on one date range
Change the period and the answer changes. With history from 2021, a window can easily be dominated by one kind of market, which is why one result is evidence and not proof.
A good result can be an accident
The more rules you stack, the easier it is to find a combination that happens to fit the past. A strategy you can explain in a sentence is easier to trust than one that merely scored well.
A backtest is evidence about a rules-based approach; what you do with a strategy remains your decision.
Key takeaways
- A backtest replays your specification against history one rebalance at a time, using only the data available on each date — history from 2021, bounded by your plan.
- Signals come from the prior trading day's close and trades are filled at the rebalance day's close — never intraday — to prevent look-ahead bias.
- A backtest picks from each universe as it stood on every rebalance date, so companies that later dropped out still count and later winners aren't picked early.
- The Score and its band are the product's summary of one result, a place to start a review rather than end one.
- The Benchmark card is the Top 50 over the same window. The charts' Benchmark dropdown can show the Top 200 or Top 500; the cards, Returns by Period and the Key takeaway stay on the Top 50.
- The Key takeaway is generated from this one backtest and describes what happened; it is not advice about what suits you.
- Overview shows the shape, Performance the evenness, Trades what happened, Configuration what was tested, Backtest History how runs compare.
- The Monthly Returns heatmap is where a headline figure comes apart: 2023 returned 46.13% and 2025 6.42%, and one CAGR stands for both.
- Transaction Cost is yours to set, charged on each entry and each exit, and defaults to zero — the Trade Log's net-return column shows what it took.
- Save As is free; Customize re-runs the strategy as a Custom backtest and spends one Strategy credit. Earlier runs stay in Backtest History.
