Git Product home page Git Product logo

rldqtrading's Introduction

RLDQTrading

Check RLDataExample now, just format and features of the written datafiles with MLWriteRLTrainData https://pvoodoo.blogspot.com/2019/03/writetraindata-tool-for-reinforcement.html

If you wonder the special Bar type, MBT, it is actually a special adaptive bar type, which can switch to next bar at next minute line if range or volume has been high.. (blog has some info of the adaptive bar)

Supervised models available too, check the blog.

Files:

Additional files coming step by step:

PVQTrain.py = main train program, DayTrading model inside if D ..

Usage: python PVQTrain.py [stockfile] [episodes] [timesteps]

Example: python PVQTrain.py RLDataForCL60D 4000 4

OR #import PVQTrain

PVQTrain.main(stock_name, episodes, timesteps)

Output:

PVQEvaluate.py to show and predict trades, out of data too

Usage: python PVQEvaluate.py [stockfile] [model]

Example: python PVQEvaluate.py RLDataForCL60D RLDataForCL60D_4000

Output:

Zoomed Output:

PVAgent.py keras model and reinforcement learning setup, some setup moved to constant.py

functions.py Actually have an important function, getNextPositionState as it defines how the predicted actions are handled

constant.py Defines some important values like Comissions, need to be changed based to instrument

PlotModel.py Draw the keras neural network model to a picture

Further info of files & directories at blog Design Consepts Test Results Neural Network Model

Other:

Probably some notebook formats added to use the whole system in colab.research.google.com (keras, GPU) FYI, No reason to run this with GPU as epoch = 1, faster with CPU model (data transfer do not delay)

Resources:

Financial Trading as a Game: A Deep Reinforcement Learning Approach

rldqtrading's People

Contributors

pvoodoo avatar

Watchers

 avatar  avatar

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.