C++ Design Patterns for Low-latency Applications Including High-frequency Trading
Paul Bilokon, Burak Gunduz

TL;DR
This paper presents a comprehensive approach to optimizing low-latency code in high-frequency trading through a new repository, optimized trading strategies, and the implementation of the Disruptor pattern, demonstrating significant performance gains.
Contribution
It introduces a Low-Latency Programming Repository, optimizes a trading strategy, and implements the Disruptor pattern in C++, advancing performance in latency-critical applications.
Findings
Significant speed and profitability improvements in trading strategy
Disruptor pattern outperforms traditional queuing methods
Techniques like Cache Warming and Constexpr greatly reduce latency
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Advanced Data Storage Technologies · Cloud Computing and Resource Management
