Code Monkey home page Code Monkey logo

forecasting-1.0's Introduction

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

forecasting-1.0's People

Contributors

kennedyczar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

forecasting-1.0's Issues

data split section

Hi,Dear kennedyCzar,you are a great man make such a wonderful project.I feel a little wonder the section of data split.you are using existed shifted data as future data by agg function.will it effect the result? Does it make sense to use the single column as lookback window?such as Close column,first 20 values as train_x and the next one as train_y,etc. thank for your reply.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.