Code Monkey home page Code Monkey logo

gym-forex's Introduction

gym-forex

The Forex environment is a forex trading simulator featuring: configurable initial capital, multiple currency pair trading, dynamic or dataset-based spread, CSV history timeseries for trading currencies and observations for the agent, fixed or agent-controlled take-profit, stop-loss and order volume.

The environment features discrete action spaces and optionally continuous action spaces if the orders dont have fixed take-profit/stop-loss and order volume.

Observation Space

A concatenation of num_ticks vectors for the lastest: vector of values from timeseries, equity and its variation, order_status( -1=closed,1=opened),time_opened (normalized with max_order_time), order_profit and its variation, order_drawdown /order_volume_pips, consecutive_drawdown/max_consecutive_dd

Action Space

discrete action 0: 0=nop,1=close,2=buy,3=sell discrete action 0 parameter: symbol (optional) continuous action 0 parameter: percent_tp, percent_sl,percent_max

Reward Function

TODO: Describe the Reward Function

Installation

git clone https://github.com/harveybc/gym-forex
cd gym-forex
pip install -e .

gym-forex's People

Contributors

harveybc avatar

Watchers

 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.