Backtesting Option strategies via Python

I have got historical option data for last 2 years, working on getting the data for last 7-10 years.
My question is for back testing my strategies should i write the code from scratch on python or are there any tools available which can directly read the data.

I know there are some websites which allow back testing directly, buy here i want full control over my rules, eg: rules based on change in vix, rules based on last 1/2/5 days change in index etc.

I wrote my own bespoke code for backtesting and live trading. :melting_face:

But there are smarter ways to go about it like using the recently defunct but perfectly functional AutoTrader project:
https://autotrader.readthedocs.io/en/latest/

2 Likes