TBT RESEARCH TOOLS

Backtest a strategy

Choose a market and trading rules, then see how they would have performed on historical data.

NSE · Stocks & indices
STEP 1

Market & instrument

National Stock Exchange of India
Search for a stock or choose All Stocks.
The length of each price candle.
STEP 2

Backtesting date range

Choose the period to test. Alice Blue provides NSE history for approximately two years.

STEP 3

Choose a strategy

Open Source Strategy

Pick a ready-made strategy or define your own entry and exit rules.

STEP 4

Configure strategy & risk

PARAMETERS

EMA Crossover

Open Source Rules

For your first test, you can start with the default values. The rules below explain when the strategy buys, sells short, or exits.

Risk Settings Stop-loss and target for Open Source Strategies

Use zero to disable a stop-loss or target. Risk exits are evaluated server-side using candle ranges.

STEP 5

Run backtest & view results

Checking your Alice Blue connection…

How trades are simulated

Signals are evaluated at candle close. Market orders execute at the next candle open. Protective exits use the candle's assumed open-high-low-close path when both levels occur in one candle.

Complete a backtest on NSE stocks to set up virtual automation.

By using TBT, you agree to the Terms and acknowledge the Risk Disclaimer and Data Limitations.

VIRTUAL MONEY ONLY

Automate Strategy

Sign in to save the strategy and use your virtual trading wallet.

INTERPRETING THE EVIDENCE

A backtest is a model of assumptions, not a forecast.

Start with fixed rules

Define entry, exit, timeframe and risk settings before reading the result. If a rule changes after you inspect performance, treat the revision as a new hypothesis and validate it on data that did not inspire the change. This reduces the risk of fitting historical noise.

Check the sample

Use enough observations to include different market conditions. Review trade count and whether most performance came from one instrument, period or exceptional trade. Current security lists can introduce survivorship bias, while missing candles and corporate actions can affect long-range comparisons.

Include real-world friction

Historical candles do not guarantee a fill. Brokerage, taxes, spread, slippage, market impact, partial fills and rejected orders can materially reduce results. Intrabar stop and target outcomes also depend on an assumed price path when only OHLC candles are available.

Validate before escalating

Compare nearby parameters, reserve an out-of-sample period and observe the unchanged rule through paper trading. Drawdown can become worse than its historical maximum. Read the Backtesting Learning Guide and Data Source and Limitations before drawing a conclusion.