Code Monkey home page Code Monkey logo

deep-rl-time-series's Introduction

Playing trading games with deep reinforcement learning

This repo is the code for this paper. Deep reinforcement learing is used to find optimal strategies in these two scenarios:

  • Momentum trading: capture the underlying dynamics
  • Arbitrage trading: utilize the hidden relation among the inputs

Several neural networks are compared:

  • Recurrent Neural Networks (GRU/LSTM)
  • Convolutional Neural Network (CNN)
  • Multi-Layer Perception (MLP)

More about deep reinforcement learning (deep Q-learning):

Setup and Dependencies

Python version: python 3.6

Use Pip

pip install -r requirements.txt

Anaconda

You can get all dependencies via the Anaconda environment file, env.yml:

conda env create -f env.yml

Play with it

  • before start at the 1st time, generate database: python sampler.py
  • call the main function: python main.py

You can play with model parameters (specified in main.py), if you get good results or any trouble, please contact me at [email protected]

deep-rl-time-series's People

Contributors

chrjxj avatar golsun 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.