/CNN-for-Stock-Market-Prediction-PyTorch

CNN for stock market prediction using raw data & candlestick graph.

Primary LanguagePython

Can Machine Reads Like Analysts Do?

update:

Related paper: Trading via Image Classification (by J.P. Morgan)

Two Approaches

Approach 1

  • cnn4matrix.py

  • Apply convolution on data matrices directly.

Input: (5*n) matrices -> (Open,High,Low,Close,Volume)*(d1,d2,...,dn)

Output: classification result

Approach 2

  • cnn.py

  • Generate candlestick graphs first. sample

Input: candlestick graphs

Output: classification result

Current results

11 layers + residual block prediction