All Projects → ucaiado → Rl_trading

ucaiado / Rl_trading

Licence: apache-2.0
An environment to high-frequency trading agents under reinforcement learning

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Rl trading

Aws Robomaker Sample Application Deepracer
Use AWS RoboMaker and demonstrate running a simulation which trains a reinforcement learning (RL) model to drive a car around a track
Stars: ✭ 105 (-48.78%)
Mutual labels:  reinforcement-learning, rl, simulation
Grid royale
A life simulation for exploring social dynamics
Stars: ✭ 252 (+22.93%)
Mutual labels:  ai, reinforcement-learning, q-learning
Deep Rl Trading
playing idealized trading games with deep reinforcement learning
Stars: ✭ 228 (+11.22%)
Mutual labels:  trading, reinforcement-learning, q-learning
Gym Anytrading
The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
Stars: ✭ 627 (+205.85%)
Mutual labels:  trading, reinforcement-learning, q-learning
Gym Alttp Gridworld
A gym environment for Stuart Armstrong's model of a treacherous turn.
Stars: ✭ 14 (-93.17%)
Mutual labels:  reinforcement-learning, q-learning, simulation
Basic reinforcement learning
An introductory series to Reinforcement Learning (RL) with comprehensive step-by-step tutorials.
Stars: ✭ 826 (+302.93%)
Mutual labels:  ai, reinforcement-learning, q-learning
Awesome Monte Carlo Tree Search Papers
A curated list of Monte Carlo tree search papers with implementations.
Stars: ✭ 387 (+88.78%)
Mutual labels:  reinforcement-learning, rl, q-learning
Trading Gym
A Trading environment base on Gym
Stars: ✭ 71 (-65.37%)
Mutual labels:  trading, reinforcement-learning, rl
Atari
AI research environment for the Atari 2600 games 🤖.
Stars: ✭ 174 (-15.12%)
Mutual labels:  ai, reinforcement-learning, rl
Cherry
A PyTorch Library for Reinforcement Learning Research
Stars: ✭ 143 (-30.24%)
Mutual labels:  reinforcement-learning, rl
Allenact
An open source framework for research in Embodied-AI from AI2.
Stars: ✭ 144 (-29.76%)
Mutual labels:  ai, reinforcement-learning
Articulations Robot Demo
Stars: ✭ 145 (-29.27%)
Mutual labels:  reinforcement-learning, simulation
Ai plays snake
AI trained using Genetic Algorithm and Deep Learning to play the game of snake
Stars: ✭ 137 (-33.17%)
Mutual labels:  ai, reinforcement-learning
Reinforcement learning in python
Implementing Reinforcement Learning, namely Q-learning and Sarsa algorithms, for global path planning of mobile robot in unknown environment with obstacles. Comparison analysis of Q-learning and Sarsa
Stars: ✭ 134 (-34.63%)
Mutual labels:  reinforcement-learning, q-learning
T 1000
⚡️ ⚡️ 𝘋𝘦𝘦𝘱 𝘙𝘓 𝘈𝘭𝘨𝘰𝘵𝘳𝘢𝘥𝘪𝘯𝘨 𝘸𝘪𝘵𝘩 𝘙𝘢𝘺 𝘈𝘗𝘐
Stars: ✭ 143 (-30.24%)
Mutual labels:  trading, rl
Reinforcement learning
Implementation of selected reinforcement learning algorithms in Tensorflow. A3C, DDPG, REINFORCE, DQN, etc.
Stars: ✭ 132 (-35.61%)
Mutual labels:  reinforcement-learning, rl
Tradzqai
Trading environnement for RL agents, backtesting and training.
Stars: ✭ 150 (-26.83%)
Mutual labels:  trading, reinforcement-learning
Gym Fx
Forex trading simulator environment for OpenAI Gym, observations contain the order status, performance and timeseries loaded from a CSV file containing rates and indicators. Work In Progress
Stars: ✭ 151 (-26.34%)
Mutual labels:  reinforcement-learning, q-learning
Snake Ai Reinforcement
AI for Snake game trained from pixels using Deep Reinforcement Learning (DQN).
Stars: ✭ 123 (-40%)
Mutual labels:  ai, reinforcement-learning
Doudizhu
AI斗地主
Stars: ✭ 149 (-27.32%)
Mutual labels:  ai, reinforcement-learning

Building Trading Models Using Reinforcement Learning

This repository contains the framework built to my dissertation of the quantitative finance mastership program, from FGV University. I proposed the use of a learning algorithm and tile coding to develop an interest rate trading strategy directly from historical high-frequency order book data.

Example simulator

No assumption about market dynamics was made, but it has required the creation of this simulator wherewith the learning agent could interact to gain experience. You can check my master thesis here and the presentation here. Both are in Portuguese. The code structure is heavily inspired by Udacity's smartcab project and in OpenAi's Gym.

Install

This project requires Python 2.7 and the following Python libraries installed:

Run

In a terminal or command window, navigate to the top-level project directory rl_trading/ (that contains this README) and run the following command:

$ python -m market_sim.agent [-h] [-t] [-d] [-s] [-m] <OPTION>

Where OPTION is the kind of agent to be run. The flag [-t] is the number of trials to perform using the same file, [-d] is the date of the file to use in the simulation, [-m] is the month of the date flag and [-s] is the number of sessions on each trial. Use the flag [-h] to get information about what kind of agent is currently available, as well as other flags to use. The simulation will generate log files to be analyzed later on. Be aware that any of those simulations options might take several minutes to complete.

Data

An example of the datasets used in this project can be found here. Unzip it and include in the folder data/preprocessed.

Main References

  1. GOULD, M. D. et al. Limit order books. Quantitative Finance, 2013.
  2. CHAN, N. T.; SHELTON, C. An electronic market-maker. 2001.
  3. BUSONIU, L. et al. Reinforcement learning and dynamic programming using function approximators. CRC press, 2010.
  4. SUTTON, R. S.; BARTO, A. G. Reinforcement Learning: An Introduction, draft, in progress. 2st. MIT Press, 2017.

License

The contents of this repository are covered under the Apache 2.0 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].