Skip to content

workofart/ml-trading-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning in Finance

There are 2 parts to this project. The first part is for me to learn deep learning and to implement neural networks from scratch. The second part is to learn reinforcement learning and apply and evaluate various techniques to teach an agent to trade.

Creating Neural Networks with Python/Keras/Tensorflow to Predict the Future

I wanted to first try to predict prices given the current, high, low prices and volume.

To aid my learning process, I created 3 versions with the same purpose:

  1. Primitive numpy package and out-of-the-box python code to implement a neural network
  2. High-level frameworks (Keras)
  3. Tensorflow

All 3 versions follow this architecture: 4 Layers

  • Relu Activation Function for first (n-1) layers
  • last layer being linear output.

Version 1 - Raw Python

Version 2 - Keras

Version 3 - TensorFlow

Check out the accompanying tutorial

Using Reinforcement Learning to Trade

The common assumptions are:

  • The agent is allowed to enter both long and short positions regardless of current cash balance

Approaches:

About

Machine Learning for Trading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages