Providing the solutions for high-frequency trading (HFT) strategies using data science approaches (Machine Learning) on Full Orderbook Tick Data.

Overview

Modeling High-Frequency Limit Order Book Dynamics Using Machine Learning

  • Framework to capture the dynamics of high-frequency limit order books.

Overview

In this project I used machine learning methods to capture the high-frequency limit order book dynamics and simple trading strategy to get the P&L outcomes.

  • Feature Extractor

    • Rise Ratio

    • Depth Ratio

      [Note] : [Feature_Selection] (Feature_Selection)

  • Learning Model Trainer

    • RandomForestClassifier
    • ExtraTreesClassifier
    • AdaBoostClassifier
    • GradientBoostingClassifier
    • SVM
  • Use best model to predict next 10 seconds

  • Prediction outcome

  • Profit & Loss

    [Note] : [Model_Selection] (Model_Selection)

You might also like...
This repo is about implementing different approaches of pose estimation and also is a sub-task of the smart hospital bed project :smile:

Pose-Estimation This repo is a sub-task of the smart hospital bed project which is about implementing the task of pose estimation 😄 Many thanks to th

Image Classification - A research on image classification and auto insurance claim prediction, a systematic experiments on modeling techniques and approaches

A research on image classification and auto insurance claim prediction, a systematic experiments on modeling techniques and approaches

ManimML is a project focused on providing animations and visualizations of common machine learning concepts with the Manim Community Library.
ManimML is a project focused on providing animations and visualizations of common machine learning concepts with the Manim Community Library.

ManimML ManimML is a project focused on providing animations and visualizations of common machine learning concepts with the Manim Community Library.

Full body anonymization - Realistic Full-Body Anonymization with Surface-Guided GANs
Full body anonymization - Realistic Full-Body Anonymization with Surface-Guided GANs

Realistic Full-Body Anonymization with Surface-Guided GANs This is the official

A resource for learning about deep learning techniques from regression to LSTM and Reinforcement Learning using financial data and the fitness functions of algorithmic trading

A tour through tensorflow with financial data I present several models ranging in complexity from simple regression to LSTM and policy networks. The s

Experimental solutions to selected exercises from the book [Advances in Financial Machine Learning by Marcos Lopez De Prado]

Advances in Financial Machine Learning Exercises Experimental solutions to selected exercises from the book Advances in Financial Machine Learning by

Algorithmic trading using machine learning.
Algorithmic trading using machine learning.

Algorithmic Trading This machine learning algorithm was built using Python 3 and scikit-learn with a Decision Tree Classifier. The program gathers sto

🛠 All-in-one web-based IDE specialized for machine learning and data science.
🛠 All-in-one web-based IDE specialized for machine learning and data science.

All-in-one web-based development environment for machine learning Getting Started • Features & Screenshots • Support • Report a Bug • FAQ • Known Issu

Comments
  • Data_Transformation - message_data

    Data_Transformation - message_data

    Hi, I am trying to reproduce your model but I am having difficulty understanding the meaning in the columns in the CN_Futures_2014.01.02 file.

    As I understand this file is the Extraction from the Limited Order Book, but I couldn't understand the QuantityDifference columns (would it be the difference between the limited ask quantity minus the limited bid quantity?) and the BestQuantity column.

    I also noticed that in the file there are many repeated OrderNumber for different timestamps.

    Thank's for your time.

    opened by falberto 5
  • Strategy Questions

    Strategy Questions

    Great project, thanks! My projects in the past were at higher timeframes (hourly, 4hourly, etc). A few quick questions for clarification given this:

    1. you list best accuracy mean of around 96%. Is this the directional accuracy, ie: you predict the market goes the correct way 96% of the time and this is at the 10second market after you do the prediction?
    2. which market are your results page from? Interested to know if you've applied this to FX - EURUSD etc,
    3. you mention placing limit orders. You graph of profits (in ticks) and cumulative profit is showing on very small scalping trades. Interested to know what the trading strategy is. I'm assuming you place a buy limit order at the ask price if you predict the market to be long. you only get in the trade if you are filled at your price. this way you are NOT dealing with any spread. is this correct?
    4. You then just always exit 10 seconds later for a profit/loss. What's the exit method - market order? you will get hit with spread. interested to know how you've set up the trading eval here.

    thanks again, Daniel

    opened by n2535904 0
  • What features do you extract?

    What features do you extract?

    I am very interested in the feature extraction part.I can see the plot of ask/bid price and their volume.But I just wonder what kind of feature you finally get? Or you just draw the plot to see the relationship of them?Can you give a simple explanation of this part?

    Thanks a lot!

    opened by shana9pm 0
  • What are you predicting?

    What are you predicting?

    I am curious what you are prediciting. I can see that you are extracting a lot of features, but what exactly you are predicting? It seems like you have a label named traded? What is “traded”?

    opened by ryanyuansufe 3
Owner
Chang-Shu Chung
Chang-Shu Chung
Using deep actor-critic model to learn best strategies in pair trading

Deep-Reinforcement-Learning-in-Stock-Trading Using deep actor-critic model to learn best strategies in pair trading Abstract Partially observed Markov

null 281 Dec 9, 2022
Optimize Trading Strategies Using Freqtrade

Optimize trading strategy using Freqtrade Short demo on building, testing and optimizing a trading strategy using Freqtrade. The DevBootstrap YouTube

DevBootstrap 139 Jan 1, 2023
Trading Strategies for Freqtrade

Freqtrade Strategies Strategies for Freqtrade, developed primarily in a partnership between @werkkrew and @JimmyNixx from the Freqtrade Discord. Use t

Bryan Chain 242 Jan 7, 2023
Trading Gym is an open source project for the development of reinforcement learning algorithms in the context of trading.

Trading Gym Trading Gym is an open-source project for the development of reinforcement learning algorithms in the context of trading. It is currently

Dimitry Foures 535 Nov 15, 2022
This is a simple backtesting framework to help you test your crypto currency trading. It includes a way to download and store historical crypto data and to execute a trading strategy.

You can use this simple crypto backtesting script to ensure your trading strategy is successful Minimal setup required and works well with static TP a

Andrei 154 Sep 12, 2022
Framework for joint representation learning, evaluation through multimodal registration and comparison with image translation based approaches

CoMIR: Contrastive Multimodal Image Representation for Registration Framework ?? Registration of images in different modalities with Deep Learning ??

Methods for Image Data Analysis - MIDA 55 Dec 9, 2022
Free Book about Deep-Learning approaches for Chess (like AlphaZero, Leela Chess Zero and Stockfish NNUE)

Free Book about Deep-Learning approaches for Chess (like AlphaZero, Leela Chess Zero and Stockfish NNUE)

Dominik Klein 189 Dec 21, 2022
Official pytorch implementation of "DSPoint: Dual-scale Point Cloud Recognition with High-frequency Fusion"

DSPoint Official implementation of "DSPoint: Dual-scale Point Cloud Recognition with High-frequency Fusion". Paper link: https://arxiv.org/abs/2111.10

Ziyao Zeng 10 Nov 24, 2021
A general-purpose, flexible, and easy-to-use simulator alongside an OpenAI Gym trading environment for MetaTrader 5 trading platform (Approved by OpenAI Gym)

gym-mtsim: OpenAI Gym - MetaTrader 5 Simulator MtSim is a simulator for the MetaTrader 5 trading platform alongside an OpenAI Gym environment for rein

Mohammad Amin Haghpanah 184 Dec 31, 2022
Approaches to modeling terrain and maps in python

topography ?? Contains different approaches to modeling terrain and topographic-style maps in python Features Inverse Distance Weighting (IDW) A given

John Gutierrez 1 Aug 10, 2022