Backtesting for AI agents

NSE, BSE and MCX

Ticks from February 2020

Free during early access

Rehearse the strategy before it goes live.

bckstage runs your Python against NSE, BSE and MCX tick data in a private sandbox, and hands the results back to Claude, ChatGPT or Cursor.

A real run, not a mock-up: three days of Nifty futures in October 2026.

You describe the test. Your agent writes it. bckstage runs it.

  1. You ask

    Backtest a 9/21 EMA crossover on Nifty near-month futures, 1-minute bars, 26 to 28 October 2026. Cross the spread and fill on the next bar.

  2. Your agent sends this to bckstage

    Python, run with the exec tool
    from bt import costs, data, engine, fills, results
    
    class EmaCross:
        """Long when the fast EMA is above the slow EMA, short when below. 1 lot."""
    
        def on_bar(self, ctx, bars):
            p = ctx.params
            h = ctx.history("NIFTY-I", p["slow"] * 3)
            if len(h) < p["slow"]:
                return
            fast = h["close"].ewm(span=p["fast"]).mean().iloc[-1]
            slow = h["close"].ewm(span=p["slow"]).mean().iloc[-1]
            target = 1 if fast > slow else -1
            diff = target * ctx.lot_size("NIFTY-I") - ctx.position("NIFTY-I")
            if diff and not ctx.open_orders():
                ctx.order("NIFTY-I", qty=diff)
    
    bars = data.bars(["NIFTY-I"], start="2026-10-26", end="2026-10-28", timeframe="1min")
    run = engine.run(EmaCross(), bars,
                     fill=fills.Fill(price="touch", timing="next_bar"),
                     costs=costs.NSECosts(),
                     capital=500_000, params={"fast": 9, "slow": 21})
    results.save("ema_cross_nifty_v1", run)
  3. bckstage returns

    Summary of the saved run (rounded)
    {
      "total_return": -0.0583,
      "max_drawdown": -0.0798,
      "trade_count": 53
    }

    It lost 5.83% in three days over 53 trades. Finding that out here costs a few minutes of sandbox time.

Two steps, then your agent does the rest.

Getting started

  1. 1. Connect your agent

    Paste one address into Claude, ChatGPT, Cursor or any agent that speaks MCP.

  2. 2. Sign in

    Your browser opens once. The first sign-in creates your account, with 5,000 free credits.

  3. 3. Ask

    Your agent takes it from there: it finds the data, shows you the price before buying any, runs the backtest and reports back.

Every contract that traded, including ones that have since expired.

Choose instruments and see the price

The data that's ready to use

ExchangeInstrumentsFromToTrading days
NSE futures and options3001 Feb 202019 Nov 20261,688
BSE futures and options1902 Jun 202529 May 2026246
MCX commodities272 Jun 202518 Nov 2026370

Ticks every 1 to 2 seconds with the best bid and ask, and bars of any size from 1 second up.

An agent's own sandbox can run a backtest too, if you bring the data and build the engine each time.

What you'd otherwise build yourself

Data that is already cleaned up

Actual traded prices, lot sizes and expiry dates from the exchanges' own files, and symbols that follow a company through a rename.

Sessions that remember

Your data stays loaded between messages, conversations and days. A session pauses when idle and wakes on the next call.

One tested engine

Indian charges, whole-lot orders, expiry settlement and no look-ahead. You choose the fill price and timing; nothing is assumed for you.

A record of every run

Each saved run keeps its code, data version and metrics, so two versions of a strategy can be compared months apart.

Any agent

bckstage is a standard MCP server. Whatever agent you use next year will work with it too.

Plain limits

A backtest is not the market. Where results here can differ from real trading.

Free during early access: you spend credits we give you, at these prices.

Full pricing

What it costs

Sandbox time

₹1 a minute

8 GiB of memory and 2 processors. Paused after 10 idle minutes, and free while paused.

Data

₹0.25 to ₹2an instrument a day

An option contract at 1-minute detail is the least, a future with ticks the most. Longer runs cost up to 70% less per day.

bckstage is free during early access. A new account starts with 5,000 credits: a year of Nifty futures, options within 5 strikes and spot costs ₹1,695 of them, and the rest runs a sandbox for about 55 hours. When you need more credits you ask for them.