LouisSch /
Backtest-Engine
A modular high-performance C++ backtesting engine featuring GBM + Jump tick simulation and multiple plug-and-play trading strategies. Containerized with Docker for easy execution.
73/100 healthLoading repository data…
Sawska / repository
A modular backtesting engine skeleton for algorithmic trading strategies. Written in C++20 with a focus on clean architecture and performance.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A high-performance, modular backtesting engine designed for HFT strategies. This project simulates an event-driven trading environment to validate Mean Reversion algorithms using statistical data modeling.
-O3 and -march=native for low-latency execution simulation.Start by downloading the source code:
git clone [https://github.com/SAWSKA/cpp-strategy-backtester.git](https://github.com/SAWSKA/cpp-strategy-backtester.git)
cd cpp-strategy-backtester
Start by downloading the source code:
git clone [https://github.com/SAWSKA/cpp-strategy-backtester.git](https://github.com/SAWSKA/cpp-strategy-backtester.git)
cd cpp-strategy-backtester
Option A: Docker (Recommended) This will build the image, generate data, and run the simulation inside a container.
make docker-all
Option B: Local Build Prerequisites: CMake 3.20+ C++ Compiler (GCC/Clang/MSVC) supporting C++20 Python 3 (for data generation) Steps:
python3 scripts/generate_data.py
make build
make run
The system is built on 4 core layers using an interface-based design pattern.
classDiagram
class IDataSource {
<<interface>>
+next() Tick
}
class IStrategy {
<<interface>>
+onTick(Tick) Side
}
class IExecutionHandler {
<<interface>>
+onOrder(Order) Execution
}
class IPortfolioHandler {
<<interface>>
+onExecution(Execution)
}
class CsvTickLoader {
-filename: string
+next() Tick
}
class MeanReversionStrategy {
-windowSize: int
-zScoreThreshold: double
+onTick(Tick) Side
}
class SimulatedExecutionHandler {
-feeRate: double
+onOrder(Order) Execution
}
class PortfolioHandler {
-cash: double
-holdings: map
+onExecution(Execution)
}
IDataSource <|-- CsvTickLoader
IStrategy <|-- MeanReversionStrategy
IExecutionHandler <|-- SimulatedExecutionHandler
IPortfolioHandler <|-- PortfolioHandler
CsvTickLoader --> MeanReversionStrategy : Feeds Data
MeanReversionStrategy --> SimulatedExecutionHandler : Sends Order
SimulatedExecutionHandler --> PortfolioHandler : Sends Execution
CsvTickLoader):MeanReversionStrategy):SimulatedExecutionHandler):PortfolioHandler):Standard random walks (Brownian motion) are non-stationary, making them unsuitable for testing Mean Reversion strategies. I implemented the Ornstein-Uhlenbeck process to generate synthetic data with mean-reverting properties:
Result: On Random Walk data, the strategy yielded a net loss (as expected). On OU-generated data, the strategy demonstrated a consistent profit (+2.34% ROI in simulation), validating the logic.
# 1. Generate Data
python3 scripts/generate_data.py
# 2. Configure & Build (Release Mode)
make build
# 3. Run Simulation
make run
No local dependencies required.
make docker-all
Running the simulation on Ornstein-Uhlenbeck generated data demonstrates the strategy's ability to capitalize on mean reversion.
Figure: Terminal output showing trade execution logs, fee calculation, and final PnL report.
The project uses GoogleTest for unit testing strategy logic and execution math.
make test
Selected from shared topics, language and repository description—not editorial ratings.
LouisSch /
A modular high-performance C++ backtesting engine featuring GBM + Jump tick simulation and multiple plug-and-play trading strategies. Containerized with Docker for easy execution.
73/100 healthserigela /
SharpEdge-Quant is a high-performance quantitative trading framework combining Python-based machine learning with a C++ backtesting engine. It features a Flask API for serving signals, a React dashboard for visualizing strategy performance, and a modular architecture for financial experimentation.
45/100 healthAshrafGalibShaik /
A comprehensive C++ implementation of an event-driven backtesting system for algorithmic trading strategies. This engine provides a realistic simulation environment that closely mimics the behavior of live trading systems through proper event sequencing and modular component architecture.
58/100 healthprajeetk /
A modular C++ backtesting engine for quantitative trading research with realistic order execution and portfolio simulation.
59/100 healthYehoshama /
A modular C# backtesting engine for algorithmic trading strategies, with a focus on data efficiency and robust analysis.
32/100 healthpriyanshu241 /
C++ implementation of a modular order matching engine with strategy backtesting and performance measurement.
42/100 health