Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 4.21 KB

README.md

File metadata and controls

77 lines (59 loc) · 4.21 KB

FORECASTING 1.0

forthebadge made-with-python

Forecasting 1.0 is an intelligent model for time-series prediction and forecasting. Implemented using ensemble models, Boosting Model and Recurrent Neural Network.

The General idea is to be able to predict important features available from stock data.

The algorithm is also capable of forecasting future market prices by filtering out bank holidays and weekend before digesting the data.

This project is similar to the Facebook prophet except we havent compared the result that much to see which is better for forecasting. Our algo is infact capable of forecasting accurately the weekly prices. beyond that, the accuracy of forecasting reduces. Note that it also serves as a signal generator.

HOW TO USE

 git clone https://github.com/kennedyCzar/FORECASTING-1.0

Data collector

  • Open the SCRIPT FOLDER and run | Use the command python Data_Collector.py
  • Note that this has been tailored to first download ticks from xm before downloading EOD data using yahoo API

STOCK class

  • This class contains the technical indicators used required for generating signals and forecasting

Forecast OHLC of Nextdays

  • Still in the SCRIPT folder you will find OHLC_OHLC.py. Specify the days forward you will like to forecast on line 422 | Use the command python OHLC_OHLC.py

Forecast OHLC of Nextdays

  • This script responsible for forecasting OHLC for specific stocks. Specidy the days forward you will like to forecast on line 420 | Use the command python OHLC_Specific.py
  • Update the name of the stocks you want to forecast on line 468

Forecast Open, High, Low or Close of Nextdays

  • OHLC_Single.py is Specifically for this purpose. the days forward you will like to forecast on line 425 | Use the command python OHLC_Single.py
  • This script is only used to predict either of the four features(OHLC) at a time

Forecast OHLC of all STOCKS in the dataset

  • This script is responsible for forecasting OHLC for all stocks in the DATASET FOLDER |
  • Use the command python OHLC_Forecaster_All.py
  • Note that this a not the mult-threaded version, so it would take some considerable abount of time.

Signal Generator

  • This script to generate signals for specific stock |
  • Use the command python Signal_generator.py
  • Edit name of stock on line 326
  • The generated signals is saved in the PREDICTED FOLDER

Signal Generator Forecaster

  • Script to generate signals and forecast future signals |
  • Use the command python Signal_Gen_Forecaster.py
  • Edit name of stock on line 735
  • The generated signals is saved in the PREDICTED FOLDER

OUTPUT IMAGES

Image of AC Image of Axtel Image of img Image of img2 Image of Axtel