TapeLeaf

Backtest options strategies. By describing them.

TapeLeaf connects Claude, Cursor and Codex to minute-level option chain history for NIFTY, BANKNIFTY, SENSEX and MIDCPNIFTY. Describe a strategy and receive a complete report, net of every charge, in about a minute.

10 free credits on sign-up. No card required.

Claude · New chat

Backtest a NIFTY 9:20 short straddle, 40% stoploss, exit at 15:15, June to November.

Selling the ATM call and put on the nearest expiry at 9:20. Exits at 15:15, or earlier if combined premium rises 40%. Running 124 sessions.

tapeleaf · run_backtestcompleted

Won 79 of 124 sessions and finished at −₹27,112 after ₹16,237 in charges. The average losing day was 2.1× the average winning day.

NIFTY 9:20 short straddle

1 Jun – 27 Nov 2026 · 124 sessions

TapeLeaf
Net P&L
−₹27,112
Win rate
63.7%
Max drawdown
₹69,767
Charges
₹16,237

Conversation shown for illustration. Figures are from real TapeLeaf runs, 1 Jun – 27 Nov 2026.

Works withClaudeClaude CodeCursorCodexand any MCP client

TapeLeaf turns a sentence into a tested strategy. Your assistant writes the rules. The engine replays them minute by minute against recorded option chains, fills at real bid and ask prices and charges every order. You see the result your broker statement would have shown.

From idea to report in one conversation.

Your assistant writes and submits the strategy. You review the numbers and decide what to change.

  1. Connect

    01

    Add TapeLeaf as a connector in Claude, or as an MCP server in Claude Code, Cursor or Codex. Sign in once with Google.

    Settings › Connectors

    Add custom connector

    CancelAdd
  2. Describe

    02

    Explain the trade as you would to a colleague. Your assistant confirms the index, strikes, expiry and exits before anything runs.

    New chat

    Test a short straddle on NIFTY at 9:20 with a 40% stoploss. June to November.

    Which expiry should I use, and when should open positions be squared off?

    Nearest weekly. Exit everything at 15:15.

    Running it now: sell the ATM CE and PE at 9:20, exit at 15:15 or if combined premium rises 40%. 124 sessions, about a minute.

  3. Review

    03

    Each run returns net and gross P&L, an itemised charge breakdown, session-level statistics, the daily P&L series and every fill.

    Daily P&L · NIFTY short straddle
    SessionP&LCumulative
    Mon, 1 Jun−₹3,383−₹3,383
    Tue, 2 Jun−₹4,373−₹7,756
    Wed, 3 Jun−₹1,193−₹8,949
    Thu, 4 Jun+₹2,086−₹6,863
    Fri, 5 Jun+₹2,747−₹4,116
    Mon, 8 Jun+₹3,330−₹786
    Tue, 9 Jun+₹7,151₹6,365

    First 7 of 124 sessions

  4. Iterate

    04

    Change one parameter and run again. Re-running an identical strategy over the same dates returns instantly, at no cost.

    Stoploss comparison · NIFTY short straddle
    30% SL−₹31,300
    40% SL−₹27,112
    50% SL−₹16,086

    Same entry and dates. Three runs, one credit each.

Costs modelled the way a contract note records them.

Orders fill at the bid or ask at the minute a rule triggers. Each order carries brokerage, STT, exchange transaction charges, GST, stamp duty and SEBI fees at current published rates.

Before charges
+₹9,808
Charges paid
₹15,532
Net result
−₹5,724
Orders charged
248

SENSEX 9:20 short strangle, 1 Jun – 27 Nov 2026.

SENSEX 9:20 short strangle

1 Jun – 27 Nov 2026
Before charges+₹9,808
Charges−₹15,532
What you keep−₹5,724
Brokerage
₹9,920
STT
₹2,499
GST
₹1,981
Exchange
₹1,080
Stamp duty
₹50
SEBI
₹3

Every strike, every minute.

Option chains are recorded live from NSE and BSE: bid, ask and last price for every listed strike, alongside the index. New sessions are added each trading day.

Resolution
1 min
NIFTY history
Aug 2022
Indices
5
Strikes recorded
All listed
Data coverage
IndexExchangeHistory from
NIFTYNSEAug 2022
BANKNIFTYNSEApr 2026
FINNIFTYNSEApr 2026
MIDCPNIFTYNSEApr 2026
SENSEXBSEApr 2026

The strategies retail desks actually run.

Time-based intraday option structures, from a single leg to an eight-leg spread, with the exits and cost settings that decide the result.

Legs per strategy
8
Strike range
±30
Exit rules
4
Fill models
3

Signal-based entries, re-entries, per-leg exits and futures legs are in development. Current limits

Legs
CE or PE, buy or sell, each with its own lot size.
Strikes
Selected relative to ATM at entry.
Expiry
Nearest live expiry or up to three beyond it.
Entry
A fixed time of day, every session in the period.
Exits
Stoploss, target, squareoff time or end of session.
Costs
Discount, custom or zero brokerage. Bid/ask, mid or last-price fills.

Sample results

Four common intraday strategies over 1 Jun – 27 Nov 2026. One lot per leg, bid/ask fills, discount-broker charges.

StrategyNet P&LWin rateMax drawdownChargesEquity curve
NIFTY short straddleATM, 9:20 entry, 40% stoploss, 15:15 exit−₹27,11263.7%₹69,767₹16,237
SENSEX short strangle1 strike OTM, 9:20 entry, 40% stoploss, 15:15 exit−₹5,72462.9%₹33,083₹15,532
NIFTY iron condorShort ±2, long ±5 strikes, 9:30 entry, 50% target and stoploss−₹47,55945.2%₹50,835₹27,769
BANKNIFTY long straddleATM monthly, 10:00 entry, 30% target, 25% stoploss−₹58,78725.8%₹67,267₹23,694

All four strategies lost money over this period. Past results do not indicate future performance.

Connect your assistant

TapeLeaf is a remote MCP server. Setup takes about a minute in any supported client.

1 credit per minute of compute

New accounts receive 10 credits. A six-month backtest typically uses one. Identical re-runs are free.

Pricing details
  1. In Claude (web or desktop), open Settings → Connectors.
  2. Choose Add custom connector, name it TapeLeaf, and paste this URL:
https://tapeleaf-api.onrender.com/mcp

Claude opens a Google sign-in the first time. Then start a new chat and ask for a backtest.

Frequently asked questions

Where does the data come from?

Minute-level option chains recorded live from the NSE and BSE derivatives markets, with bid, ask and last price for every listed strike, alongside the index level. New sessions are added each trading day.

How are fills and charges modelled?

Buys fill at the ask and sells at the bid, at the minute an entry or exit rule triggers. Every order carries brokerage, STT, exchange transaction charges, GST, stamp duty and SEBI fees at current published rates. Mid and last-price fills, custom brokerage and extra slippage are available for comparison.

Can I export the underlying market data?

No. TapeLeaf returns results only: metrics, daily P&L, charges and the fills your strategy generated. Candles, option chains and ticks are not available through any tool or export.

Who can see my strategies?

Only you, and anyone you add to a shared workspace. Public links are created only on request.

Do I need to write JSON or code?

No. Your assistant converts your description into a strategy specification, confirms the details with you and submits it.

Does TapeLeaf place trades?

No. TapeLeaf runs historical simulations only. It has no broker connection, live trading or paper trading.

Start with 10 free credits.

Connect TapeLeaf to your assistant and run your first backtest today.