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.
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
- 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.
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.
Connect
01Add TapeLeaf as a connector in Claude, or as an MCP server in Claude Code, Cursor or Codex. Sign in once with Google.
Add custom connector
CancelAddDescribe
02Explain the trade as you would to a colleague. Your assistant confirms the index, strikes, expiry and exits before anything runs.
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.
Review
03Each run returns net and gross P&L, an itemised charge breakdown, session-level statistics, the daily P&L series and every fill.
Session P&L Cumulative 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
Iterate
04Change one parameter and run again. Re-running an identical strategy over the same dates returns instantly, at no cost.
30% SL−₹31,30040% SL−₹27,11250% SL−₹16,086Same 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- 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
| Index | Exchange | History from |
|---|---|---|
| NIFTY | NSE | Aug 2022 |
| BANKNIFTY | NSE | Apr 2026 |
| FINNIFTY | NSE | Apr 2026 |
| MIDCPNIFTY | NSE | Apr 2026 |
| SENSEX | BSE | Apr 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.
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- In Claude (web or desktop), open Settings → Connectors.
- Choose Add custom connector, name it TapeLeaf, and paste this URL:
https://tapeleaf-api.onrender.com/mcpClaude opens a Google sign-in the first time. Then start a new chat and ask for a backtest.
Run this in your terminal:
claude mcp add --transport http tapeleaf https://tapeleaf-api.onrender.com/mcpThen open /mcp in Claude Code, select TapeLeaf and sign in with Google.
Add this to ~/.cursor/mcp.json (or your project’s .cursor/mcp.json):
{
"mcpServers": {
"tapeleaf": {
"url": "https://tapeleaf-api.onrender.com/mcp"
}
}
}Finish the Google sign-in from Cursor’s MCP settings.
Run this in your terminal:
codex mcp add tapeleaf --url https://tapeleaf-api.onrender.com/mcpIf Codex asks you to authenticate, run codex mcp login tapeleaf.
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.