C++ Design Patterns for Low-latency Applications Including High-frequency Trading

09/08/2023
by   Paul Bilokon, et al.
0

This work aims to bridge the existing knowledge gap in the optimisation of latency-critical code, specifically focusing on high-frequency trading (HFT) systems. The research culminates in three main contributions: the creation of a Low-Latency Programming Repository, the optimisation of a market-neutral statistical arbitrage pairs trading strategy, and the implementation of the Disruptor pattern in C++. The repository serves as a practical guide and is enriched with rigorous statistical benchmarking, while the trading strategy optimisation led to substantial improvements in speed and profitability. The Disruptor pattern showcased significant performance enhancement over traditional queuing methods. Evaluation metrics include speed, cache utilisation, and statistical significance, among others. Techniques like Cache Warming and Constexpr showed the most significant gains in latency reduction. Future directions involve expanding the repository, testing the optimised trading algorithm in a live trading environment, and integrating the Disruptor pattern with the trading algorithm for comprehensive system benchmarking. The work is oriented towards academics and industry practitioners seeking to improve performance in latency-sensitive applications.

READ FULL TEXT

page 15

page 19

page 21

page 23

page 24

page 31

page 34

page 39

research
09/05/2018

Deep Reinforcement Learning in High Frequency Trading

The ability to give a precise and fast prediction for the price movement...
research
08/27/2023

Semi-static Conditions in Low-latency C++ for High Frequency Trading: Better than Branch Prediction Hints

Conditional branches pose a challenge for code optimisation, particularl...
research
04/29/2021

Quantum Quantitative Trading: High-Frequency Statistical Arbitrage Algorithm

Quantitative trading is an integral part of financial markets with high ...
research
03/06/2019

Learning the population dynamics of technical trading strategies

We use an adversarial expert based online learning algorithm to learn th...
research
08/26/2020

TradAO: A Visual Analytics System for Trading Algorithm Optimization

With the wide applications of algorithmic trading, it has become critica...
research
04/10/2021

Quantum Prisoner's Dilemma and High Frequency Trading on the Quantum Cloud

High-frequency trading (HFT) offers an excellent user case and a potenti...
research
08/16/2021

Unifying Futures and Spot Market: Overbooking-Enabled Resource Trading in Mobile Edge Networks

Securing necessary resources for edge computing processes via effective ...

Please sign up or login with your details

Forgot password? Click here to reset