Skip to content

Predictive algorithm for forecasting the mexican stock exchange. Machine Learning approach to forecast price and Indicator behaviours of MACD, Bollinger and SuperTrend strategy

License

Notifications You must be signed in to change notification settings

fibai/FORECASTING-1.0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FORECASTING 1.0 HitCount

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

About

Predictive algorithm for forecasting the mexican stock exchange. Machine Learning approach to forecast price and Indicator behaviours of MACD, Bollinger and SuperTrend strategy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%