Giter Club home page Giter Club logo

recurrent-neural-network-trading-bot's Introduction

#Time series forecasting with a Recurrent Neural Network

This trading bot was an attempt at building a passive source of income through options trading on the stock market Over time i've added higher quality indicator data to my training datasets and the cost functions have decreased However this bot is missing 1 crucial piece of data that will greatly enhance its performance. Market depth / level 2 data has been well documented in research and at trading firms as having strong predictive power. This is due to the fact that the information contained in the order books are unfilled limit orders. If there is an inbalance between buyers and sellers, the order books will reflect it and can be an early indicator of price movement before it actually occurs. This is because once those unfilled orders become filled the stock will move in the direction of the imbalance, thus the trading bot would grealy benefit from this data.

Unfortunately a market depth subscription from IBKR is extremely expensive... I will definetely try to collect this data in the future once I can afford it. I'm certain that the bot will be more precise once I harvest that level 2 data.

Some information on the bot...

  • Trained on tech stocks
  • Utilizes IBKR to make trades
  • Built on Tensorflow and Keras
  • Incorporates LSTM layers to prevent gradient vanishing
  • 6 months of IBKR historical data at a 1 second interval harvested for use in training
  • Mean absolute error best performance = $6.54 on Tesla stock forecasting 1 hour into the future

##NOTE

  • Config.keras files are for the LSTM layers
  • Included the famous F12010 dataset from the nordic stock exchange
  • Other datasets are available to play around with

##Requirements

  • Must sign up for an IBKR pro account with options trading enabled
  • Must sign upfor an IBKR pro account with options trading enabled
  • Only functional with nvidia cuda gpus. Will not work on cpus
  • when running main.py or RNN_regression_time_series.py make sure your current directory is in the folder PlexisBot ex. C://Users/charl/Recurrent-Neural-Network-Trading-Bot/PlexisBot

image

recurrent-neural-network-trading-bot's People

Contributors

zhwang2001 avatar zhwang822 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.