A backtesting notebook for Indian stocks. Test an NSE strategy, hedge it with options, and see how it would have done.
Why it exists
Every trading idea I had for Indian markets meant writing another backtest by hand. Most of them never got tested because the setup took too long. I wanted to just type the idea and see what happens.
Before (Notebook): Write the backtest by hand; Wire up data for every idea; Most ideas never get tested. After (One sentence): Type the theory in plain English; Claude builds and runs the backtest; Charts to compare, then decide.
What’s on screen
The theory, in plain words: Type the idea the way you would say it out loud. No code.
Strategy vs hedge: The backtest draws the strategy with and without its options hedge, side by side.
Notes that carry over: A running notes stream, so each new study builds on the last one.
Paper only: Nothing is bought or sold here. If a strategy holds up, I place the trade myself.
How it works
State: Type a theory about Indian stocks or F&O in plain English.
Test: It pulls data from Zerodha Kite, builds the backtest and runs it.
Compare: Charts show how it would have done, hedged and unhedged. Then I decide.
Decisions, and why
Dropped the notebook: Writing cells was the slow part. Now I state the theory and the app does the rest.
Its own app instead of a ChatGPT plug-in: An installable app with its own notes stream keeps every study’s context in one place.
Kept light on data: Kite API calls add up, so it favours index-level strategies over huge stock lists.
So far
₹0 real money in the app
Weekly Nifty iron condor, on paper
Oct 2026: First version, notebook style
Oct 2026: Switched to plain-English theories
Oct 2026: Paper-trading a weekly Nifty iron condor
Now: Personal tool, stock F&O next
Right now it is paper-trading a weekly Nifty iron condor. I built it for myself, it’s not a product.