Giter Club home page Giter Club logo

financerobot_rl's Introduction

Reinforcement Learning Algorithms Applications for BTC Trading

the project is to apply DQN, DDQN and PPO upon BTC trading. it accomplishes below tasks:

  • download OHLC data from encryption exchange house;
  • generate features data via OHLC data, which include:
    • volume
    • RSI
    • Log_close_weeklag
    • Log_high_low
    • Log_open_weeklag
    • open_pre_close
    • high_pre_close
    • low_pre_close
    • num_trades
    • bid_volume
    • horizon_price
    • close
  • data normalization with previous 365 lookback
  • set up environment, with the class Name: Finance_Environment_V2
    • action_space: long and short are all applied during the course of training, while in the course of backtest, only short is not advised.
      • buy = 2
      • hold = 1
      • sell = 0
    • reward function:
      • reward1: positive return makes reward1 = 1 , while negative return makes reward1 = -1; reward1 = 0, when action is on hold;
      • reward2: np.log(margin_ratio) * (action - 1)
      • reward = reward1 + reward2 * 5
  • Training either by DQN , or DDQN , or PPO, and save the trained_model
  • Backtesting:
    • vector Backtesting;
    • event based Backtesting: short is not recommended;
    • to produce plotly chart

financerobot_rl's People

Contributors

dancingonmoon avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

financerobot_rl's Issues

realtime data

Hi
Did u test your models on realtime ohlc data? Thx

Missing class/library BTCCrawl_To_DataFrame_Class

Hello,

I was looking at your code, and the results look promising. When trying to run it myself, I noticed that you are referencing a class "BTCCrawl_To_DataFrame_Class", which I cannot find. Please point me to where I could see this.

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.