Reader small image

You're reading from  C++ High Performance for Financial Systems

Product typeBook
Published inMar 2024
PublisherPackt
ISBN-139781805124528
Edition1st Edition
Right arrow
Author (1)
Ariel Silahian
Ariel Silahian
author image
Ariel Silahian

Ariel Silahian is a seasoned software engineer with over 20 years of experience in the industry. With a strong background in C++ and .NET C#, Ariel has honed his technical skills to deliver successful projects for a range of financial institutions, including banks and financial trading companies, both domestically and internationally. Thanks to his passion for high-frequency and electronic trading systems he has developed a deep understanding of financial markets, resulting in his proven track record in delivering top-performing systems from scratch. He has also worked on other critical systems such as monitoring systems, machine learning research, and management decision tree systems, and has received recognition for his exceptional work.
Read more about Ariel Silahian

Right arrow

Implementing the Model and Strategy modules

This module is the brain of the system, responsible for making trading decisions based on real-time market data. The Strategy module continuously reads the market data from the LOB, applies various trading strategies, and triggers orders when certain criteria are met. The implementation of this module requires careful design and optimization to ensure low latency and high throughput, which are critical for the success of high-frequency trading.

In our proposed architecture, the Strategy module is designed as a separate module that operates concurrently with the LOB and other modules of the system. It communicates with the LOB through a ring buffer, which is a lock-free data structure that allows efficient and concurrent access to market data. The Strategy module continuously polls the ring buffer in a busy waiting loop, ensuring that it can immediately process new market data as soon as it arrives.

To further optimize the performance...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
C++ High Performance for Financial Systems
Published in: Mar 2024Publisher: PacktISBN-13: 9781805124528

Author (1)

author image
Ariel Silahian

Ariel Silahian is a seasoned software engineer with over 20 years of experience in the industry. With a strong background in C++ and .NET C#, Ariel has honed his technical skills to deliver successful projects for a range of financial institutions, including banks and financial trading companies, both domestically and internationally. Thanks to his passion for high-frequency and electronic trading systems he has developed a deep understanding of financial markets, resulting in his proven track record in delivering top-performing systems from scratch. He has also worked on other critical systems such as monitoring systems, machine learning research, and management decision tree systems, and has received recognition for his exceptional work.
Read more about Ariel Silahian