QuantFlow
+28% out-of-sample Sharpe stability via purged walk-forward CV
Algorithmic trading engine with ML-driven backtesting
Problem formulation
Evaluating quantitative trading strategies on non-stationary financial time series suffers from critical lookahead bias when using naive k-fold cross validation. Information leaks from future price bars into past training partitions, inflating historical Sharpe ratios that immediately degrade out-of-sample. Concurrently, iterative loop-based simulation engines are too slow to benchmark 50+ hyperparameter configurations across 100K+ historical OHLCV bars.
Subsystem topology
QuantFlow processes 100K+ OHLCV time-series records through a vectorized NumPy/Pandas feature pipeline, executing simulations 65% faster than iterative baselines. The core engine applies Purged Walk-Forward Cross Validation to enforce chronological separation between training and test sets.
A configurable purge window discards overlapping label horizons, while an embargo period buffers post-test samples to eliminate autoregressive serial correlation. Hyperparameter tuning benchmarks across 50+ runs are governed via Pydantic YAML schemas and tracked in MLflow, achieving +28% out-of-sample Sharpe ratio stability.
Architectural decisions
Vectorized NumPy/Pandas feature pipelines
Cuts simulation execution time by 65% compared to iterative baselines across 100K+ OHLCV bars.
Purged walk-forward cross-validation with configurable embargo periods
Eliminates data leakage on non-stationary financial series, improving out-of-sample Sharpe stability by 28%.
Pydantic-validated YAML schemas with MLflow tracking
Automates experiment governance to benchmark 50+ hyperparameter runs across Sortino, Calmar, and Maximum Drawdown metrics.