StephanAkkerman / tensortrade

This repository contains my TensorTrade-focused code, including the core program and supplemental tools used in my bachelor's thesis on trading low market capitalization cryptocurrencies using reinforcement learning.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TensorTrade

Python 3.7 Code style: black MIT License


This is the reinforcement learning code I used for my thesis about how to trade low market capitulization cryptocurrencies.

Features

  • Fetches up to date historical data from Binance, using a custom script.
  • Plots a comparison of the reinforcement learning agent and simple trading strategies (see section Images for more info).
  • Some extras, such as an analysis of all TA indicators available for the TA library.

Dependencies

The required packages to run this code can be found in the requirements.txt file. To run this file, execute the following code block:

$ pip install -r requirements.txt 

Alternatively, you can install the required packages manually like this:

$ pip install <package>

How to run

  • Clone the repository
  • Run $ python src/main.py
  • See result

Images

Comparison

After testing the RL agent a graph is plotted, showing the net worth of the agent compared to the benchmarks. Image of benchmark

TACorrelation

Displays a heatmap of absolute correlation of technical analysis indicators in the same group. This is how the heatmap of trend indicators looks like.

Image of heatmap

About

This repository contains my TensorTrade-focused code, including the core program and supplemental tools used in my bachelor's thesis on trading low market capitalization cryptocurrencies using reinforcement learning.

License:MIT License


Languages

Language:Python 100.0%