/backtest_analyzer

Analyse your Backtesting & Trading Journal for NSE Options

Backtesting Journal Analyzing For Options (NSE)

general video

I initially created this tool for personal use but I think it can benefit a lot of people.

This tool specifically helps you to show a realistic backtest report / journal by adding slippages and near to real transaction costs (Brokerage, STT Charges, Stamp Duty, SEBI Charges, Exchange Charges, GST, etc).

All the charges inputs are taken from zerodha’s charges page (https://zerodha.com/charges) and verified with zerodha’s brokerage calculator (https://zerodha.com/brokerage-calculator).

You can use the tool at https://batjaoptions.streamlit.app/

Contact me

Follow @oyesindhi_

Give a shoutout to @oyesindhi_

How to use the tool?

  1. You have to upload your backtesting / trading journal in an Excel (XLSX) format. No other format will work (not even CSV). You can upload up to 5 excel files which means you can analyze data of 5 strategies combined like a portfolio.

upload file

Note: make sure to write column headers of XLSX file as it is. Highly case sensitive.

image

  1. You need to specify capital for the strategy / set of strategies. Metrics in % will be shown accordingly.

add capital

  1. You need to specify slippages in %. Slippages are applied on both entries and exits.

  2. You need to specify brokerage per order in rupees ₹. As of now, I have only made it as per brokerage per order plan and not other plans (fixed monthly brokerage, etc). If you trade with a “free brokerage plan”, just leave the brokerage option 0.

add slippage  brokerage

Credits

I have created this app using python with streamlit. The code used for calculation of Monte Carlo Simulation is taken from @ankit_quant Medium post. Link to post - https://medium.com/@ankit_quant/when-to-stop-trading-a-strategy-28d104bb20b6

Note

If you think we can make it more better by adding some features, please feel free to DM on twitter.

Follow @oyesindhi_