How to do Backtesting of F&O Trades

if I want to do backtesting to look if any of my strategy goes wrong, then where I can do?

for E.g. - If I bought Nifty 22500 CE of 11th April Expiry on 8th April & Sold it on 10th April with a profit of 5000 Rs.

Now the CE of 11th Apr is expired. Now If I want to re-test at what levels I have done this trade, I don’t see the 11th April CE on chart as it is expired. So, in such case How can I validate it with a chart after that Expiry date is over?

You can use opstra from define edge or stockmock etc sites. Zerodha or any other broker currently does not have this feature as far as I know.

1 Like

U may use this site…

It’s one of the best site with features of backtesting and simulation on Nifty, Bank nifty, midcap nifty and finnifty

Do give it a try :+1::slightly_smiling_face:

1 Like

You can try with different backtesting platform, i can also help with creating custom backtest program using historical 1 minute timeframe futures and options data from 2016 to 2023 that i have. you can contact me on [email protected] to discuss more.

You need to get the options data - either tickdata or 1-minute OHLC data. Perhaps, I can help. I wrote a similar bot for backtesting my option buying strats.