I am practicing the day trading strategies for beginners and in section 8, trying to do the backtesting.
I believe qunant curriculum is aligned to the US securities and only the US datasets are available.
How can i test on Indian securities?
Hi Vikas,
Unfortunately, right now Indian dataset is not available on Blueshift (covered in Section 8). But the concepts and strategies taught in Quantra course can be applied to any asset irrespective of the geography.
You can backtest the startegy by:
- Fetching the data of the stock of your choice. To learn how to fetch the data for Indian markets you can refer to this notebook.
- The course has covered vectorized backtesting of day trading strategies. Once you have the data, you can easily replace the imported data file in the existing notebooks of the course with the data for the stock you wish to test.
If you face any issues during this process feel free to write back so that we can help you resolve them.
Thanks
Rushda
Thanks Rushida for the details. What is the platform where i can download the strategy code available in Blueshift and run it on the dataset available in yahoo and obtain the similar results as given as an output by Blueshift.
Hi Vikas,
The blueshift template provided in the course pertains to the Gap strategy. You can also find the implementation and backtesting of this strategy in Section 6 Unit 10 of the course. Using this notebook, you can conduct vectorized backtesting on any Indian stock by substituting the data file in cell 2 with the price data of the Indian stock.
Please note that to proceed with this, you need to download the Jupyter notebook from Section 6 Unit 10, insert the path of the price data file of the Indian stock into cell 2, and then run the notebook.
By running the notebook you will be able to compute the cumulative returns of the strategy.
Alternatively, you can explore packages such as backtrader and zipline. But for this you will have to write the codes in the format required by these particular packages. You can read this blog for further details.
Thanks
Rushda