A Python factor DSL for quantitative researchers: typed IR, C++ generation, three-way consistency verification, checkpoint reproduction, and traceable parameter experiments.
Translated from Chinese by Claude Β· original on GitHub β
A Python factor DSL for quantitative researchers: typed IR, C++ generation, three-way consistency verification, checkpoint reproduction, and traceable parameter experiments.
Translated from Chinese by Claude Β· original on GitHub β
// momentum
// why it's here
// how to help
// readme
Researchers write streaming factors in Python, and production then requires rewriting them in C++. This step is the most error-prone: for example, whether the window includes the current trade, how missing values are handled, and whether session switches should reset state. When the results of the two sides donβt match, the only option is manual line-by-line debugging.
Strategy DSL lets you write a factor as an expression graph. A single definition yields:
The runtime depends only on Python 3.9+ and a C++17 compiler (clang++ or g++). It has no third-party libraries.
Health score
Is the project alive and maintained right now? A 0β100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.
How it's calculatedUndervalued score
Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity β divided by a logarithmic reach factor.
How it's calculated