RL agent for crypto trading
Top 99.3% on sourcepulse
This repository provides a deep reinforcement learning trading agent, specifically a Proximal Policy Optimization (PPO) agent implemented with Tensorforce, designed to maximize profit in a simulated trading environment. It's targeted at quantitative traders and researchers interested in applying RL to financial markets, offering a flexible framework for developing and testing trading strategies.
How It Works
The core of the project is a trading environment compatible with OpenAI Gym, which wraps financial OHLCV (Open, High, Low, Close, Volume) data. The PPO agent observes features derived from these candles (configurable window size) and decides to buy, sell, or hold. It supports single long or short positions per trade, with invalid sequences like consecutive buys being treated as holds. A sparse reward is given upon position closure or episode completion, encouraging learning long-term dependencies.
Quick Start & Requirements
pip install -r requirements.txt
PATH_TRAIN
and PATH_TEST
).Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The provided sample data and agent configuration may lead to overfitting; more extensive training data and larger network architectures are suggested for improved performance. The initial results show potential but require further tuning and validation.
2 years ago
Inactive