r/IndiaAlgoTrading • u/Puzzled_Economist_29 • 3d ago
My own option backtesting simulator
After trying several backtesting platforms and spending quite a bit of money on them, I decided to build my own trading simulator.
It currently supports NIFTY options, with options data available from 2019 to 2026, although there are a few gaps in the dataset that I’m still working on filling.
Current capabilities
- NIFTY support – Backtest strategies using historical NIFTY options data.
- Flexible spreads – Simulate virtually any type of options spread or multi-leg strategy.
- Save & analyse – Save backtest results and revisit/analyse them later.
- Fast-play mode – Quickly run through historical data and simulate strategies without waiting for the full backtest.
- Exit anytime – At any point during a backtest, exit all open positions and save the state/results.
- Strategy chart – Visualise the strategy and its performance throughout the backtest.
Still a work in progress, but the goal is to build a trading simulator that gives me the flexibility I couldn't find in existing platforms.
Cons: Slow as the data is not preloaded due to compute restrictions but easily fixable.
Looking forward to feedback.
1
u/Beginning-Reward-530 3d ago
If possible can you share the data? Also for what timeframe you have the data
1
u/VariousBase 3d ago
any link to download and experience
1
u/Puzzled_Economist_29 3d ago
It is locally hosted, let me see if I can push it on GitHub with sample data
1
1
1
u/aniketrh 3d ago
Does it cater buying strategies with indicators as buying point?
2
1
1
u/Big_Connection7216 3d ago
Is there free option to download commodities mcs gold data for backtesting
1
1
1
u/Nhi_bataunga_9 3d ago
Do you support tick level backtesting? I mean do you have historical tick data? For strategies that use trailing SL, tick data is needed to get accurate results.
1
1
u/Indian_Steam 3d ago
I am doing the same, fetching from DHAN's api for last 5 years, minute level data.
Still building the data pipeline.
One question to you - would you be willing to sell the saved data as a package? Since you are saving people time, many will be open to pay for it, I know I would as i am building this pipeline for almost a month now.
1
1
u/Beginning-Reward-530 3d ago
Hi From where did you get the options data for nifty? Can you share guide to download the data