Code Monkey home page Code Monkey logo

rlquant's Introduction

Applying Reinforcement Learning in Quantitative Trading

Overview

This is the repository of my graduate thesis which aims to use reinforcement learning in quantitative trading. Two types of RL models were experimented and could make good performance in the back-test:

  1. Policy Gradient
    • Vanilla Policy Gradient (not implemented in this repo)
    • Multi-Task Recurrent Policy Gradient (RPG)
  2. Direct RL
    • Vanilla DRL (DRL)
    • A hybrid network involves news embedding vectors (DRL with news)

Experiments

.ipynb files were details of experiments.

This repository contains 3 types of environments:

  1. CryptoCurrency (Huobi): env/crc_env.py
  2. End of day US stock prices (quandl): env/stock_env.py
  3. Continuous Futures (quandl): env/futures_env.py

And, 2 types of agents:

  1. DRL: agents/drl_agent.py and agents/drl_news_agent.py
  2. RPG: agents/rpg_agent.py and agents/rpg_news_agent.py

Also, there are some history codes in history and model_archive which have been deprecated, but contains some early ideas, please feel free to use them.

Reference

[1] Deep Direct Reinforcement Learning for Financial Signal Representation and Trading
[2] Using a Financial Training Criterion Rather than a Prediction Criterion
[3] A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem
[4] Recurrent Reinforcement Learning: A Hybrid Approach
[5] Reinforcement Learning for Trading
[6] Continuous control with deep reinforcement learning
[7] Memory-based control with recurrent neural networks

rlquant's People

Contributors

yuriak 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.