Coder Social home page Coder Social logo

trading-brain's Introduction

Trading Brain is a framework example for implementing and testing trading strategies. It is composed of mainly three components communicating through APIs:

  • Brain
  • Memory
  • Agent

This library can be used to test agents with the Trading-Gym.

Installation

Install packages in requirements.txt file

Roll out your own Agent

To create your own agent, it must inherit from the Agent base class which can be found at 'tbrn/base/agent.py'. It consists of three basic methods that need to be overridden in order to implement your own logic:

  • act: returns the action chosen by the agent.
  • observe: returns a real value (can be the loss in the case of a KerasAgent for instance). This method is where the learning logic of the agent is located. Can be blank for dummy agents.
  • end: any logic at the end of an episode.

Examples

One example can be found in examples/

  • Simple keras agent (examples/keras_example.py)
  • Dueling Double DQN tensorflow agent (examples/tf_example.py)

Read more about this example at our Trading Gym

Copyright © 2017 RKR Epsilon UK Ltd. All rights reserved.

trading-brain's People

Contributors

pm-beba avatar thedimlebowski avatar

Watchers

James Cloos 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.