How tembolo1284/quantedge works
QuantEdge is a C++ quantitative-strategy framework with an example runner that loads price series, generates signals, backtests them, and prints final capital. The runner demonstrates pairs trading, mean reversion, and momentum; pairs trading also supports loading paired CSV price files. Mean-reversion and pairs calculations use the shared statistics implementation, while momentum computes its own price change. The README documents these three strategy capabilities. Edges reflect calls visible in the excerpts; no market-data service or persistent store is shown.
Main entry points: main.cpp Example runner · PairsTrader.cpp Pairs trading · MeanReversionStrategy.cpp Mean reversion · MomentumStrategy.cpp Momentum
Components 7
Example entry
- Example runner
src/main.cpp
Trading strategies
- Pairs trading
src/PairsTrader.cpp - Mean reversion
src/MeanReversionStrategy.cpp - Momentum
src/MomentumStrategy.cpp
Shared foundation
- Statistics
src/Statistics.cpp - Strategy interface
include/StrategyBase.hpp
Other components
- Price files
Connections 8
- Example runner → Pairs trading: runs workflow
src/main.cpp - Example runner → Mean reversion: runs workflow
src/main.cpp - Example runner → Momentum: runs workflow
src/main.cpp - Pairs trading → Statistics: calculates signals
src/PairsTrader.cpp - Mean reversion → Statistics: calculates means
src/MeanReversionStrategy.cpp - Pairs trading → Price files: reads CSV prices
src/PairsTrader.cpp - Mean reversion → Strategy interface: implements interface
- Momentum → Strategy interface: implements interface