Home

Awesome

Deep Reinforcement Learning for Trading

This repository provides the code for a Reinforcement Learning trading agent with its trading environment that works with both simulated and historical market data. This was inspired by OpenAI Gym framework.

This repository has the Keras implementation of

Code for agents

Article about this project

gif

Requirements

Workflow

<p align="center"><img src="images/worflow.png" width="450px"/></p>

Architecture

<p align="center"><img src="images/class_diagram.png"/></p>

Features

Policy

State

[𝐴𝐷𝑋(𝑑), 𝑅𝑆𝐼(𝑑), 𝐢𝐢𝐼(𝑑), π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›, π‘’π‘›π‘Ÿπ‘’π‘Žπ‘™π‘–π‘§π‘’π‘‘ π‘Ÿπ‘’π‘‘π‘’π‘Ÿπ‘›]

Action

The agent could take three actions – Buy, Sell or Hold

Reward

The reward objective is set to maximize realized PnL from a round trip trade. It also includes

What's next?