Architecture
The quant flow wraps Rust primitives (MarkovRegimeModel, VpinDetector, prediction_greeks, cornish_fisher_var, etc.) into a cohesive pipeline that runs inside the oversight loop.
Regime Detection
Classifies fund-level market regime using a 3-state Hidden Markov Model (calm/volatile/crisis) with trend and mean-reversion overlays.Multi-Factor Alpha Model
Replaces the naiveedge = 0.05 * fitness with a 7-factor model that self-calibrates using information coefficients (IC).
Prediction Market Factors
Factor weights are proportional to IC_IR (mean IC / std IC). Factors with negative IC get sign-flipped. The model reweights automatically as outcomes are recorded.
Hypothesis Framework
Tracks trading ideas through a formal lifecycle with Bayesian updating and statistical validation.Hypothesis Lifecycle
confidence * edge) wins deployment priority. SQLite persistence survives restarts.
Signal Ensemble
Combines multiple signal sources with IC-weighted blending and redundancy detection.Research Intelligence
Event-driven research triggers replace purely timer-based scanning.Portfolio Optimization
Constraint-aware optimizer that replaces simple equal-weight allocation.Risk Analytics
Regime-conditional risk limits, Cornish-Fisher tail risk, and portfolio Greeks.Alpha Decay Tracking
Monitors edge erosion and predicts when strategies should be retired.Execution Intelligence
VPIN toxicity detection, inventory risk management, and execution scheduling.Performance Attribution
Fund-level alpha/beta decomposition, strategy contribution, and cost analysis.Oversight Loop Integration
All 10 modules are wired into the FundManager oversight loop automatically:Configuration
Three new fields onFundConfig control the quant flow:
fund.regime_detector, fund.alpha_model, etc.) even when optimization_enabled and regime_risk_enabled are False. The flags only control whether they replace the defaults in the oversight loop.