Stratify Continue with Google

Stratify / Guides / Guide

How to Backtest Options Strategies with AI: ChatGPT and Claude on Real NIFTY and SENSEX Data

Ask ChatGPT or Claude in plain English and get a real options backtest on one-minute NIFTY and SENSEX option prices, with every charge. Free for the last year of data.

· 4 min read

Backtest NIFTY and SENSEX options strategies with AI by asking ChatGPT or Claude
Backtest options strategies by asking your AI.

Ask a chatbot how a short straddle did on NIFTY last year and it will invent an answer. Connect it to an options backtesting engine and it can give you a real one. This guide shows how to backtest options strategies with AI, using Stratify, a free options backtesting MCP server for NIFTY and SENSEX.

Can ChatGPT or Claude backtest options on their own?

No. ChatGPT and Claude have no historical option prices, so any backtest result they produce on their own is a guess. To backtest an options strategy with AI, the AI needs a tool that holds real option data and runs the simulation. That tool is an MCP server: your AI writes the strategy, the server runs the backtest on its data, and the results come back to your chat.

Four ways to backtest options strategies

Comparison of four ways to backtest options: spreadsheet, broker platform, Python, and AI with Stratify
Typical capabilities of each approach; individual tools vary.

A spreadsheet, a broker or web backtesting platform, Python with a data vendor, or your AI with a backtesting server. The gap that matters most is real intraday option prices plus every charge. Without both, an options backtest flatters the strategy.

How to backtest options with AI in three steps

How to backtest options with AI in three steps: sign in, connect ChatGPT or Claude, ask
Sign in, connect, ask.
  1. Sign in at stratify.aeon-labs.site with Google. It's free.
  2. Connect Stratify to your AI: the Stratify app in ChatGPT, or a custom connector in Claude (Settings, Connectors, Add custom connector).
  3. Ask for a backtest in plain English, for example "backtest a NIFTY short strangle 1% out of the money, entered two days before expiry".

Stratify also works in Claude Code, Cursor, VS Code, Codex and Gemini CLI, or any MCP client.

Setup in twenty seconds: sign in, paste one line, ask.

What an AI options backtest looks like

ChatGPT sends the strategy; the server replays it on every trading day of the year.
An iron condor backtest asked in ChatGPT, then a follow-up on expiry days only.

Prompts to backtest a straddle, strangle, iron condor and more

Example prompts to backtest a short straddle, strangle and iron condor in ChatGPT or Claude
Copy one into ChatGPT or Claude once Stratify is connected.

Copy any of these into ChatGPT or Claude:

  • "Backtest a NIFTY short straddle at the money, entered at 9:30 two days before weekly expiry, held to expiry."
  • "Backtest a SENSEX iron condor with short strikes 1% out and 1% wings."
  • "Compare a NIFTY short strangle with and without a 2× stop loss."
  • "Backtest a bull put spread on NIFTY and show the worst drawdown."
  • "Only enter the NIFTY short straddle when India VIX is below 15. How does that change the result?"
  • "Which weekday entry worked best for a NIFTY iron fly last year?"

Or write the whole strategy as one paragraph, with entry conditions, stops and rolls:

A one-paragraph NIFTY strategy with VIX and RSI conditions, backtested from Claude Code.

NIFTY options backtest: ten strategies, one year of real data

NIFTY options backtest results for ten strategies over one year, after charges
Net P&L for the year against the worst drawdown along the way, with each strategy's win rate.

Ten textbook options strategies on NIFTY weeklies, entered two days before expiry and held to expiry, one lot, after charges, July 2025 to June 2026. The bull put spread won 90% of weeks and made ₹2.3k. Its worst drawdown was ₹17.4k. A high win rate is not a good strategy.

Buying a NIFTY strangle every day for a year, then selling it: the same trade, opposite results.

How to read an options backtest

How to read an options backtest: win rate, worst drawdown and verdict
Win rate, deepest hole, and the verdict with the checks behind it.

Then open the replay and watch any trade play out, minute by minute, on the index chart:

The replay: one NIFTY trade from entry to exit on one-minute data.

Five ways an options backtest can mislead you

Five ways an options backtest can mislead you
A good backtester refuses all five.

Frequently asked questions

Can I backtest options in ChatGPT?

Yes, once ChatGPT is connected to a backtesting server. Add the Stratify app in ChatGPT, describe the strategy, and ChatGPT sends it to the server, which runs it on real one-minute NIFTY or SENSEX option prices.

Can Claude backtest trading strategies?

Yes, with a connector. In Claude, go to Settings, Connectors, Add custom connector, paste the Stratify URL and sign in. Claude Code, Cursor and VS Code connect the same way through MCP.

Is there a free options backtesting tool for NIFTY and SENSEX?

Stratify is free for the last year of NIFTY and SENSEX data (July 2025 to June 2026), up to 100 backtests an hour. Longer history (NIFTY from 2019, SENSEX from August 2023) is on a waitlist.

Which options strategies can I backtest?

On both indices: short straddles, short strangles, iron condors, iron flies, credit spreads and long calls and puts. On NIFTY, also debit spreads, calendar spreads and your own legs and rules, with stop losses, targets, rolls, and entry conditions such as India VIX or RSI.

Does the backtest include brokerage, STT and other charges?

Yes. Every trade carries brokerage, STT, exchange and SEBI fees, GST and stamp duty, and results are reported after charges.

What data does the backtest use?

One-minute prices for NIFTY and SENSEX weekly options, not end-of-day closes, so stop losses and intraday exits are checked minute by minute.

What is an MCP server?

The Model Context Protocol (MCP) is the standard way AI apps like ChatGPT and Claude use outside tools. An MCP server for backtesting gives your AI a real engine and real data, so it can answer with computed results instead of guesses.

Can I backtest BANKNIFTY or stock options?

Not yet. NIFTY and SENSEX only.

Does it give trading tips or place trades?

No. It's a historical simulation, one lot, after charges. It won't tell you what to trade.

Start backtesting options with AI for free at stratify.aeon-labs.site. The server is open source: github.com/Srinath-exe/stratify-mcp.

Backtest NIFTY and SENSEX options from ChatGPT or Claude. Free for the last year of data.

Start free with Google

More guides