• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Repository for Going Deeper with Convolutional Neural Network for Stock Market Prediction

Going Deeper with Convolutional Neural Network for Stock Market Prediction

Repository for Going Deeper with Convolutional Neural Network for Stock Market Prediction

Introduction

Predict the stock market price will go up or not in the near future.

Data Collection

  • Using Yahoo! Finance for time series data source
  • 50 Taiwan Companies from 0050.TW index.
  • Top 10 Indonesia Stock exchange companies.

Methodology

  • Using candlestick chart for input model
  • DeepCNN
  • ResNet 50
  • VGG16
  • VGG19
  • Randomforest
  • KNN

Usage

Prepare Environment

Recommended using virtual environment

python3 -m venv .env

Running on Python3.5

pip install -U -r requirements.txt

Prepare Dataset

  • Convert OHLCV stock market data to Candlestickchart
python run_binary_preprocessing.py <ticker> <tradingdays> <windows>

example

python run_binary_preprocessing.py 2880.TW 20 50
  • Generate dataset
python generatedata.py <pathdir> <origindir> <destinationdir>

example

python generatedata.py dataset 20_50/2880.TW dataset_2880TW_20_50
  • Remove alpha channel
cd /dataset/dataset_2880TW_20_50
find . -name "*.png" -exec convert "{}" -alpha off "{}" \;

Training

  • DeepCNN
python myDeepCNN.py -i <datasetdir> -e <numberofepoch> -d <dimensionsize> -b <batchsize> -o <outputresultreport>

example

python myDeepCNN.py -i dataset/dataset_2880TW_20_50 -e 50 -d 50 -b 8 -o outputresult.txt

Performance Evaluation

  • Accuracy
  • Specitivity
  • Sensitivity
  • MCC
  • F1

Citation

@misc{1903.12258,
Author = {Rosdyana Mangir Irawan Kusuma and Trang-Thi Ho and Wei-Chun Kao and Yu-Yen Ou and Kai-Lung Hua},
Title = {Using Deep Learning Neural Networks and Candlestick Chart Representation to Predict Stock Market},
Year = {2019},
Eprint = {arXiv:1903.12258},
}

More Repositories

1

CNN-Financial-Data

Deep Trading using Convolutional Neural Network
Jupyter Notebook
27
star
2

CTF

CTF Writeups collection
C++
6
star
3

ROpenDota

An R package that works as an API client for DOTA2 based on OpenDota
R
6
star
4

InfectionAR

a AR game using Vuforia and Unity for Interactive Video Game Development course in YZU
C#
6
star
5

OLPS-Comparison

OLPS Comparison
Jupyter Notebook
4
star
6

SPMF

SPMF is an open-source data mining mining library written in Java, specialized in pattern mining (the discovery of patterns in data) .
Java
2
star
7

My-Movie-Catalogue

Java
2
star
8

3D-Shooting-Game-Unity

MidTerm Project FPS for Interactive Video Game Development
C#
2
star
9

PokeMan

PokéMan - Unofficial Pokémon game in style with Pacman
C#
2
star
10

Bioinformatics

just for my bioinformatics course
R
2
star
11

Efflux-ATP-Binding

Binding site prediction on Efflux protein using CNN
Python
1
star
12

TomTomMart

Kotlin
1
star
13

rosdyanakusuma.com

CSS
1
star
14

django-slim-buster

Dockerfile
1
star
15

dokku-phantomjs

Shell
1
star
16

ofxBasketBall

Basketball game using Openframework with box2d and OpenCV
C++
1
star
17

cudnn-switcher

cudnn switching tool
Python
1
star
18

Youtube-Downloader-with-Python

Python
1
star
19

Bootcamp-ReactJS-Batch-3

Bootcamp ReactJS Batch #3
JavaScript
1
star
20

Deep-Convolutional-Neural-Networks-Stock-Market

Deep Convolutional Neural Networks to predict stock market data.
Python
1
star
21

remix-rpg

Python
1
star
22

My-Dictionary

Java
1
star
23

rosdyana

1
star
24

MD5-Crack-and-Generator

MD5 Crack and Generator
PHP
1
star
25

BioTools

R
1
star
26

3DGP

3DGP - 3D Game Programming using Ogre3D
C++
1
star
27

remix-platformer

A platformer game using PyGame
1
star
28

rosdyana.github.io

JavaScript
1
star
29

Taiwan-Train-Schedule

Taiwan train schedule based on Taiwan Railways Administration system.
C#
1
star
30

PlayerRolesPrediction

R
1
star