Giter Club home page Giter Club logo

stockpriceprediction's Introduction

Stockprice Prediction & Arbitrage Trading

Attention

As the datasets are too large, we do not upload them on github, u can find a sample of datafile what we use under the ./dataset/training_data/600000.csv.

Toolkits

Data Preprocessing

split_train_data.py helps extract the original dataset file traing_data.zip and split them with respect to stock codes, saving them under ./dataset/training_data

Database loader

dbloader.py helps load stocks data via its stock code and assigned date interval

Task1: Prediction

Day model

Runing for day price prediction: day_model.py

Seasonal Components of the day model

Minute Model

Runing for minute price prediction: minute_model.py

Model Structure

Task2: Trading Strategy

Step1

Search for high correlated stock pairs, saved under ./top_corr/ runing: find_corr_top.py

Step2

Search for significant stock pairs, saved under ./rule/trade_rule.csv runing: cointegration.py
Spread price of pair(600015,600016) with high significant

OLS fit on Spread price of pair(600015,600016)

A pvalue(1-pvalue) test matrix of 600000 with some other stocks

Required Packages

Public

numpy,pandas,matplotlib

In Task1

day_model.py: fbprophet==0.3.post2
minute_model.py: keras, tensorflow, sklearn

In Task2

find_corr_top.py: None except Public packages
cointegration.py: statsmodels, seaborn

stockpriceprediction's People

Contributors

ryanwangzf avatar

Watchers

James Cloos avatar

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.