Giter VIP home page Giter VIP logo

kochlisgit / tradernet-crv2 Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 7.0 161 KB

TraderNet-CRv2 - Combining Deep Reinforcement Learning with Technical Analysis and Trend Monitoring on Cryptocurrency Markets

Python 11.99% Jupyter Notebook 88.01%
cryptocurrency-trading deep-neural-networks deep-reinforcement-learning explainability google-trends machine-learning proximal-policy-optimization python risk-adjusted-return technical-analysis technical-indicators tensorflow tf-agents trading-algorithms trading-bot reward-shaping double-dqn-algorithm ppo-algorithm google-trends-api ddqn

tradernet-crv2's Introduction

TraderNet-CRv2

TraderNet-CRv2 - Combining Deep Reinforcement Learning with Technical Analysis and Trend Monitoring on Cryptocurrency Markets

Description

This system architecture is an extended version of the original TraderNet-CR architecture, which is described by this paper: https://link.springer.com/chapter/10.1007/978-3-031-08333-4_25. In this work, we combine Proximal Policy Optimization algorithm (PPO), which is a DRL learning algorithm, with 2 rule-based safety mechanisms: N-Consecutive & Smurfing. Our experiments on 5 popular cryptocurrencies show very promising results.

TraderNet-CRv2 Architecture

Technical Indicators

Technical analysis has been applied on market data in order to train TraderNet. The following popular technical indicators have been used:

  • EMA (Exponential Moving Average)
  • DEMA (Double-Exponential Moving Average)
  • MACD (Moving Average Convergence/Divergenc)
  • AROON
  • CCI (Commodity Channel Inde)
  • ADX (Average Directional Inde)
  • STOCH (Stochastic Oscillator)
  • RSI (Relative Strength Index)
  • OBV (On-Balance Volume)
  • BBANDS (Bolliger Bands)
  • VWAP (Volume-Weighted Average Pric)
  • ADL (Accumulation/Distribution Line)

Requirements

To run and evaluate our agent, You need to download the following libraries/packages:

Instructions

Download Python 3.6 or higher and the libraries that are described on requirements using pip installer (e.g. pip install numpy). Then:

  1. Run download_datasets.py to download the datasets from CoinAPI platform (https://www.coinapi.io/).
  2. Use train_tradernet.ipynb to train TraderNet module.
  3. Use train_smurf.ipynb to train Smurf module.
  4. Use integrated.ipynb to evaluate the Integrated agent.

Supported Cryptocurrencies

  1. Bitcoin (BTC)
  2. Ethereum (ETH)
  3. Cardano (ADA)
  4. Litecoin (LTC)
  5. XRP

Paper

Cite us

Important Note

This AI is not a commercial product and is intended for research purposes only.

tradernet-crv2's People

Contributors

kochlisgit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tradernet-crv2's Issues

critical file not exist

Hi, Vasileios, firstly thanks a lot for sharing this repo.
When I'm trying to run your code, there is a critical file database.datasets.targets missing as below:

from database.datasets.targets.market_limit_orders_builder import MarketLimitOrdersBuilder

Would you please check this file, and upload it, thanks again!

Response Status: 404 - Not Found

1 step . download_datasets.py
Using apikey: 27E5E40C-7A6B-45EB-A5C8-8311B049A741
Response Status: 404 - Not Found
Using apikey: 8F6252DE-0AD7-478F-91C7-141141E8BE8B
Response Status: 404 - Not Found
Using apikey: 3B49210E-100B-4F8D-9011-2BA5D38274BA
Response Status: 404 - Not Found
Using apikey: BF6BF46F-B44B-416E-9656-2D2AAFBC058B
Response Status: 404 - Not Found
Using apikey: B21A98A2-C953-4C73-84CF-CFFB6F712200
Response Status: 404 - Not Found
Using apikey: 51667E99-7686-4496-B23D-6DA54F7E37AE
Response Status: 401 - Unauthorized
Using apikey: 0921F87B-BF55-4B78-B8B0-E023B4D7A2E2
Response Status: 401 - Unauthorized
Using apikey: 3F9E3251-029C-457A-9ADA-7F21A440AAF9
Response Status: 401 - Unauthorized
Using apikey: 41EBEA2D-1A4B-4654-8A41-186639B9AB9F
Response Status: 401 - Unauthorized
Using apikey: 6B93AEC2-910C-4064-80FB-91AED487AB97
Response Status: 401 - Unauthorized
Using apikey: 83049379-23DE-4CB0-8299-7137BB836D48
Response Status: 401 - Unauthorized
Using apikey: B08FCA1F-F454-4C34-AC01-42F16354BCBC
Response Status: 401 - Unauthorized
Using apikey: 12E5D72C-25A6-4ED6-8384-7C291EC43768
Response Status: 401 - Unauthorized
Using apikey: 4F287859-5A00-47EF-AC91-8A2629F8C6A1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.