Giter Site home page Giter Site logo

reidmen / losttraderbot Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 531 KB

The lost bot looking for a new future!

License: MIT License

Python 49.27% C++ 50.73%
trading algorithmic-trading event-based python3 backtesting backtesting-trading-strategies

losttraderbot's Introduction

CodeBase MIT Black

LostTraderBot

The lost bot looking for a new future!

TODO (Event Base backend)

  • Add unit tests per each file.
  • Add more strategies, include extra datasets
  • Fix typing issues
  • Speed up using pybind. Aiming at event testing of around ~100 ms max.
  • Introduce complete backtesting in c++ (ideally, std=c++17/20).

TODO (Strategies)

  • Add multiple indicators: Hurst exponent, Ichimoku cloud, SuperTrend, etc.
  • Add order book dynamic, i.e. level 1, 2, 3 volume as a way to determine market direction.
  • Dynamic book depth to limit exposure to position limits.
  • Test preferences to higher frequency to introduce liquidity in the market vs. long position over time.
  • Crossing the book dynamics
  • Manage inventory in general

Installation

To use this library, install it as a PIPy package:

pip3 install -e .  

Run Example

In examples/strategies/ you can find existing strategies. To execute MovingAveragesCrossStrategy, use:

cd examples/
python3 strategies/MovingAveragesCrossStrategy.py

Results will be stored in logfiles with all the events.

Requirements

To install it with requirements for testing and development (using requirements.txt) use:

pip3 install --requirement requirements.txt -e .

Python style

References for implementation

  • Successful Algorithmic Trading, Michael L. Halls-Moore

Contribution

  • Currently working alone on the project, if someone wants to contibute, feel free to raise issues and errors.
  • Long term is to make it a long standing - fully operative project. I'm willing to risk a few hundreds (EUR)!

Under MIT License

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.