Awesome
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:
- Policy Gradient
- Vanilla Policy Gradient (not implemented in this repo)
- Multi-Task Recurrent Policy Gradient (RPG)
- 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:
- CryptoCurrency (Huobi):
env/crc_env.py
- End of day US stock prices (quandl):
env/stock_env.py
- Continuous Futures (quandl):
env/futures_env.py
And, 2 types of agents:
- DRL:
agents/drl_agent.py
andagents/drl_news_agent.py
- RPG:
agents/rpg_agent.py
andagents/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