Genetic algorithm engine that evolves trading strategies
Evolves trading strategies via genetic algorithms instead of manual coding.
Demo algo showing Python with C++ bindings using compile-time reflection
C++26 reflection kills PyBind11 boilerplate, but only Bloomberg Clang supports it today.
C++/Python quant developers, algorithmic trading engineers, high-performance computing practitioners
PyBind11 · CFFI · Boost.Python
With the C++26 Reflection (P2996) [2], that bridge can now be made invisible. That's the new syntax: ^^T and [: x :] .
I built this repo to show how you can use the Bloomberg/Clang P2996 fork [3] to automatically reflect a C++ quant engine into a Python execution loop. I used Merton Jump Diffusion [4] as the shell - it’s a standard model (with no special alpha) - to show the tech in a real-world context. I initially found out this was working from Callum Piper's ACCU talk [5].
I've included a justfile and Docker Clang build so people can experiment with the new reflection syntax without having to battle through the build tedium.
1. https://github.com/pybind/pybind11 2. https://isocpp.org/files/papers/P2996R13.html 3. https://github.com/bloomberg/clang-p2996 4. Merton, R.C. (1976). Option pricing when underlying stock returns are discontinuous. Journal of Financial Economics, 3(1–2), 125–144. 4. 5. https://youtu.be/SJ0NFLpR9vE
Evolves trading strategies via genetic algorithms instead of manual coding.
14-check risk gate and 7-trigger circuit breaker beat Backtrader's basic safeguards.
Hey HN! I'm Garrett, creator of eZorro. The problem: I had trading ideas but couldn't code them. I'd think "buy Apple when it drops 5% below its 20-day moving a
Natural language to algo trading, but Tradier, TradingView, and QuantConnect already do this.
Compile-time DI via AST—zero reflection, zero runtime cost, Go idioms intact.
C runtime + Python metaprogramming: pointer math and manual memory in Python syntax.