Guides

How to Backtest a Trading Strategy in India in 2026: A Step-by-Step HFTSignal Guide

By Shubham Agrawal 2026-09-08 7 min read

How to Backtest a Trading Strategy in India in 2026

This is Part 2 of a 4-part series on HFTSignal. Part 1 covered building and saving a strategy definition. A saved strategy on its own never runs anywhere — to backtest a trading strategy in India on HFTSignal, you first bundle it into a Trading Setup, then launch that setup in Backtest mode. This post covers both steps: building the setup, and reading what the backtest tells you.

What Is a Trading Setup on HFTSignal?

A Trading Setup is the bundle that combines a saved strategy, a broker account, a date range, and a single run mode into one launchable unit. A strategy defines the rules; a Trading Setup defines who runs those rules, on what data, and in what mode.

HFTSignal's New Setup screen, showing setup name, description, run mode toggle, default launch options, and an attached strategy

FieldWhat it does
NameA label for the setup, such as “9:30TradingSetup”
DescriptionA plain-text note describing what the setup is for and when it runs
Run ModeBacktest, Paper, or Live — set once per setup
From / ToThe date range a Backtest run downloads historical data for
Data Broker AccountThe connected broker account used to fetch price bars for the backtest
Strategy rowsOne or more saved strategies attached to this setup, added via “Add Strategy”

Like the strategy configuration screen from Part 1, this screen has a Builder and a Raw YAML toggle for the same settings, and the Kill Switch stays visible in the top corner throughout.

How Do I Create a Trading Setup?

Creating a Trading Setup means filling in five things: a name, a description, a run mode, a date range with a data broker account, and at least one strategy. Name and description are free text — the example above uses a name that states the run schedule directly (“9:30TradingSetup”) rather than something generic, which makes the setup easier to identify later in the Runs list. Run Mode is a three-way toggle; selecting Backtest here means every launch of this setup runs against historical data until you change it. From and To set the historical window the backtest pulls data for, and Data Broker Account picks which connected broker supplies that historical data — this account is used for data only, not for placing orders. Strategies are attached one at a time with “Add Strategy,” each shown as a numbered row (#1, #2, and so on), and every strategy in the setup shares the same date range, broker account, and run mode. Clicking Create Setup saves the bundle without launching it.

What Do Backtest, Paper, and Live Mean for a Trading Setup?

Backtest, Paper, and Live are the three run modes a Trading Setup can launch in, and the mode is set once per setup rather than once per run.

ModeData usedOrders placedReal money at risk
BacktestHistorical price data for the selected date rangeSimulated against past dataNo
PaperLive market pricesSimulatedNo
LiveLive market pricesReal orders through the connected brokerYes

This post covers Backtest mode only. Paper and Live modes, including connecting a broker for order placement rather than just data, are covered later in this series.

How Do I Read My Backtest Results?

A finished backtest opens on an Overview tab showing performance metrics, streak data, and a day-wise P&L chart, with separate tabs for Charts, Fills, and Positions.

HFTSignal's backtest results Overview tab, showing performance metrics, streak summary, streak distribution, and a day-wise P&L chart

MetricWhat it means
Overall ProfitTotal profit or loss across every trade in the selected date range
Win % / Loss %Share of trades that closed profitably versus at a loss
Max Profit / Max LossThe single best trade and the single worst trade in the backtest
Avg Win / Avg LossThe average profit on winning trades and the average loss on losing trades
Max Drawdown (Max DD)The largest peak-to-trough decline in cumulative P&L during the period
MDD DaysHow many days the strategy spent below its prior peak before recovering
ExpectancyThe average profit or loss expected per trade, blending win rate with average win and loss size
Max Win Streak / Max Loss StreakThe longest consecutive run of winning trades, and of losing trades

The Fills tab lists every individual order execution (188 in this run); the Positions tab lists completed round-trip trades built from those fills (94 in this run). The Day-wise Performance Chart plots daily P&L as bars against cumulative P&L as a line, so a strategy that is trending down overall but still has green days is easy to distinguish from one that is losing steadily.

Is a Backtest Result a Guarantee of Future Performance?

A backtest result is not a guarantee of future performance and is not investment advice. It reflects how a strategy’s rules would have performed against historical price data for the exact date range selected, using the assumptions built into the simulation. Past performance shown in any backtest, including a positive one, does not predict what the same strategy will do in live markets.

What’s Next After Running a Backtest?

Running a backtest is Part 2 of a four-part series. Two parts remain.

PartCovers
Part 1Build Strategy — building and saving a strategy definition
Part 2 (this post)Build Trading Setup and Run Backtest — bundling a strategy with a broker account and date range, then reading the results
Part 3Setting up Broker — connecting your broker account, starting with Zerodha Kite
Part 4Paper Trade and Live Trade — running a Trading Setup on live prices with simulated orders, then going live

FAQs

What is a Trading Setup on HFTSignal?

A Trading Setup bundles one or more saved strategies with a broker account, a date range, and a single run mode — Backtest, Paper, or Live. It’s the unit you actually launch; a saved strategy by itself never places an order.

Do I need a broker connected to run a backtest?

Yes, but only as a data source. A backtest downloads historical price bars using the connected broker account you select under Data Broker Account. It does not place any order through that broker.

What does Win % and Max Drawdown mean in a backtest result?

Win % is the share of trades that closed profitably out of the total trades taken. Max Drawdown is the largest percentage decline from a peak in cumulative P&L to the lowest point that followed it, before a new peak was reached.

Can one Trading Setup run more than one strategy?

Yes. Each strategy is added as a numbered row inside the same Trading Setup, and every strategy in that setup shares the same date range, broker account, and run mode.

SA

Shubham Agrawal

HFTSignal researches strategy templates and builds the execution infrastructure Indian retail traders tune and deploy on their own broker.

Try HFTSignal

We research the strategy templates. You tune the parameters. Deploy on your own broker — no code required.

Start for free →