All Projects → AdrianP- → Gym_trading

AdrianP- / Gym_trading

Licence: apache-2.0

Programming Languages

python3
1442 projects

Projects that are alternatives of or similar to Gym trading

Ctc Executioner
Master Thesis: Limit order placement with Reinforcement Learning
Stars: ✭ 112 (+28.74%)
Mutual labels:  jupyter-notebook, dqn, openai-gym
Hands On Reinforcement Learning With Python
Master Reinforcement and Deep Reinforcement Learning using OpenAI Gym and TensorFlow
Stars: ✭ 640 (+635.63%)
Mutual labels:  jupyter-notebook, openai-gym, deep-q-network
Gym Anytrading
The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
Stars: ✭ 627 (+620.69%)
Mutual labels:  trading, dqn, openai-gym
Deep Reinforcement Learning
Repo for the Deep Reinforcement Learning Nanodegree program
Stars: ✭ 4,012 (+4511.49%)
Mutual labels:  jupyter-notebook, dqn, openai-gym
Tutorials
Ipython notebooks for math and finance tutorials
Stars: ✭ 654 (+651.72%)
Mutual labels:  jupyter-notebook, trading
Deep Trading Agent
Deep Reinforcement Learning based Trading Agent for Bitcoin
Stars: ✭ 573 (+558.62%)
Mutual labels:  trading, deep-q-network
Research
Notebooks based on financial machine learning.
Stars: ✭ 714 (+720.69%)
Mutual labels:  jupyter-notebook, trading
Reinforcement Learning With Tensorflow
Simple Reinforcement learning tutorials, 莫烦Python 中文AI教学
Stars: ✭ 6,948 (+7886.21%)
Mutual labels:  dqn, deep-q-network
Rl Portfolio Management
Attempting to replicate "A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem" https://arxiv.org/abs/1706.10059 (and an openai gym environment)
Stars: ✭ 447 (+413.79%)
Mutual labels:  jupyter-notebook, openai-gym
Sgx Full Orderbook Tick Data Trading Strategy
Providing the solutions for high-frequency trading (HFT) strategies using data science approaches (Machine Learning) on Full Orderbook Tick Data.
Stars: ✭ 733 (+742.53%)
Mutual labels:  jupyter-notebook, trading
Basic reinforcement learning
An introductory series to Reinforcement Learning (RL) with comprehensive step-by-step tutorials.
Stars: ✭ 826 (+849.43%)
Mutual labels:  jupyter-notebook, openai-gym
Deep Reinforcement Learning For Automated Stock Trading Ensemble Strategy Icaif 2020
Deep Reinforcement Learning for Automated Stock Trading: An Ensemble Strategy. ICAIF 2020. Please star.
Stars: ✭ 518 (+495.4%)
Mutual labels:  jupyter-notebook, openai-gym
Minecraft Reinforcement Learning
Deep Recurrent Q-Learning vs Deep Q Learning on a simple Partially Observable Markov Decision Process with Minecraft
Stars: ✭ 33 (-62.07%)
Mutual labels:  jupyter-notebook, dqn
Rl Book
Source codes for the book "Reinforcement Learning: Theory and Python Implementation"
Stars: ✭ 464 (+433.33%)
Mutual labels:  jupyter-notebook, openai-gym
Atari
1-step Q Learning from the paper "Asynchronous Methods for Deep Reinforcement Learning"
Stars: ✭ 12 (-86.21%)
Mutual labels:  jupyter-notebook, deep-q-network
Pandas Ta
Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators
Stars: ✭ 962 (+1005.75%)
Mutual labels:  jupyter-notebook, trading
Deeprl Tutorials
Contains high quality implementations of Deep Reinforcement Learning algorithms written in PyTorch
Stars: ✭ 748 (+759.77%)
Mutual labels:  jupyter-notebook, deep-q-network
Gdax Orderbook Ml
Application of machine learning to the Coinbase (GDAX) orderbook
Stars: ✭ 60 (-31.03%)
Mutual labels:  jupyter-notebook, trading
Tensorflow Tutorial
Tensorflow tutorial from basic to hard, 莫烦Python 中文AI教学
Stars: ✭ 4,122 (+4637.93%)
Mutual labels:  dqn, deep-q-network
Mushroom Rl
Python library for Reinforcement Learning.
Stars: ✭ 442 (+408.05%)
Mutual labels:  dqn, openai-gym

OpenAI Gym for Trading With DQN OpenAI Baseline

An example of Reinforcement Trading using OpenAI Baseline.

This is made by Adrian Portabales based on Mr. Peter Henry and inspired by Tito Ingargiola, hackthemarket.

There are some improvements in code:

  • 4 States:

    • 0 = Holding the trade. Only recalculate reward
    • 1 = Buy
    • 2 = Sell
    • 3 = Close position

    The bot only operates with one open position at the same time.

  • At the end of every episode, a test is run. The size of train and test set in train_split variable

  • Now you can add more features (like indicators, momentums etc) with feature_engineering module.

Tutorial

https://github.com/AdrianP-/gym_trading/blob/master/Baseline%20DQN%20Gym_Trading%20Tutorial.ipynb

References

OpenAI Baseline: https://github.com/openai/baselines

Gym_trading by Peter Henry: https://github.com/Henry-bee/gym_trading/

Also, good thougths in Trading and Q learning: https://github.com/savourylie/Stock-Price-Forecaster

Thanks to all!

Requirements

Requirements: -Pandas -Matplotlib -Numpy -gym -TA-Lib -baselines

This framework was built in Python 3.5.2

Contact

Twitter: @porta4k

Mail: [email protected]

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