Giter VIP home page Giter VIP logo

trading-rules-using-machine-learning's Introduction

High-Frequency Trading rules using machine learning

  • This is my financial trading system using ML.

  • See Notebook

  • I'm still working on this project.

Version 2.0

Momentum strategy with machine learning

  1. Financial Data and Bars

    • Form time/dollar bars with tick data
  2. Getting Trading Signals

    • Momentum strategy (RSI..)
    • Additional ML regime detector
  3. Trading Rules

    • Enter rules with trading signals
    • Exit rules (triple-barrier method)
    • Binary Labeling (Profit or Loss)
  4. Strategy Enhancing ML Model

  • Get Features (X)

    • Market data & Technical analysis
    • Microstructure features
    • Macroeconomic variables
    • Fundamentals
    • public sentiments with NLP
  • Feature Engineering

    • Feature scaling
    • Dimension reduction
    • Feature Analysis with feature importance
    • Feature selection
  • Machine Learning Model

    • Cross-validation (time-series cv / Purged k-fold)
    • Hyperparameter tuning
    • AutoML with autogluon and select the best model
    • Results (accuracy, f1 score, roc-auc)
  1. Trading
    • Bet Sizing
    • Trading Simulation
  2. Results
    • Cumulative returns, Sharpe Ratio, max drawdown

Financial Data and Bars

  • ETH/USD 5 min data (2019.1.1 ~ now)
  • The trading rule is based on Triple-Barrier Method introduced in Lopez De Prado (2018).

References:

Flowchart

ML Trade Networks

trading-rules-using-machine-learning's People

Contributors

jo-cho avatar

Watchers

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