A basic implementation to download historic prices, apply a strategy, and see the strategy performance vis-a-vis the actual stock prices.
A basic implementation to download historic prices, apply a strategy, and see the strategy performance vis-a-vis the actual stock prices.
The code requires some clean-up.
The overview is as follows:
A typical plot for Bollinger-band based strategy:
Signals for the above strategy:
This uses Pandas, NumPy, NSEPy, SciKit, MatPlotLib, and a host of other python libraries.
Feel free to add your custom strategies, optimized code for fetching data, improved graph plots, etc.
I am not a python programmer, nor am I an expert in trading or technical analysis. All ideas/suggestions/improvements are welcome.