Stock Prediction on Python using Machine Learning (NARX)

Here is a naive attempt at predicting a particular stock’s price and displaying it on a ESP8266. This algorithm is not the best one out there, but what is being shown here is the ability to port it elsewhere and easily integrate these complex models with micro-controllers (ESP8266) and other devices.


  1. Install MATLAB 2017a Runtime v9.2 from here
  2. Goto Python/matlab_stock_python_lib folder and install “stock” python library using `python install`
  3. Use “requirements.txt” file to install required libraries. Console: “$ pip -r install requirements.txt”
  4. Enter appropriate values for MQTT server in “” and run “python”
  5. Upload Arduino files on your esp8266 using Arduino IDE

Leave a Comment

Your email address will not be published. Required fields are marked *