How zachisit/july-backtester works
July Backtester is a Python strategy-research engine. Its main workflow loads configured historical market data, discovers strategy plugins, simulates portfolios, evaluates risk and robustness with Monte Carlo and walk-forward analysis, then summarizes results and generates reports. Separate capabilities include point-in-time index universes, funded target-weight portfolios, and construction of a merged market-data corpus. The excerpts show the main entry point and selected runtime layers; links for unsampled subsystems are included only where the README documents them.
Main entry points: main.py Run orchestrator · services.py Provider selection · report.py Report command · registry.py Strategy registry
Components 26
Backtest workflow
- Run configuration
config.py - Run orchestrator
main.py
Strategy research
- Strategy registry
helpers/registry.py - Signal strategies
custom_strategies - Rotation strategies
helpers/rotation.py - Funded strategies
custom_strategies/vix_evrp_sgov.py - Portfolio simulation
helpers/portfolio_simulations.py - Target-weight engine
helpers/target_weight_runner.py - Simulation metrics
helpers/simulations.py - Monte Carlo analysis
helpers/monte_carlo.py - Walk-forward analysis
helpers/wfa.py
Market data
- Provider selection
services/services.py - Polygon source
services/polygon_service.py - Yahoo source
services/yahoo_service.py - Norgate source
services/norgate_service.py - CSV source
services/csv_service.py - Parquet source
services/parquet_service.py - Point-in-time universe
helpers/point_in_time.py - Unified data provider
src/data/unified_market_data_provider.py - Corpus merge pipeline
src/data/pipeline/merge.py
Results and reports
- Run summary
helpers/summary.py - LLM verdict output
helpers/llm_verdict.py - Report command
report.py - Trade analysis
trade_analyzer/analyzer.py - PDF report generation
trade_analyzer/report_generator.py
Other components
- Researcher
Connections 25
- Researcher → Run orchestrator: runs
README.md - Researcher → Report command: requests report
README.md - Run configuration → Run orchestrator: configures
README.md - Run orchestrator → Provider selection: fetches data
main.py - Provider selection → Polygon source: selects provider
services/services.py - Provider selection → Yahoo source: selects provider
services/services.py - Provider selection → Norgate source: selects provider
services/services.py - Provider selection → CSV source: selects provider
services/services.py - Provider selection → Parquet source: selects provider
services/services.py - Run orchestrator → Point-in-time universe: resolves universe
README.md - Run orchestrator → Strategy registry: discovers strategies
README.md - Signal strategies → Strategy registry: registers plugins
custom_strategies/mean_reversion.py - Run orchestrator → Portfolio simulation: runs simulation
main.py - Run orchestrator → Target-weight engine: runs funded portfolio
README.md - Funded strategies → Strategy registry: registers strategy
custom_strategies/vix_evrp_sgov.py - Run orchestrator → Monte Carlo analysis: evaluates robustness
main.py - Run orchestrator → Walk-forward analysis: evaluates folds
README.md - Portfolio simulation → Simulation metrics: calculates metrics
helpers/portfolio_simulations.py - Run orchestrator → Run summary: summarizes results
main.py - Run orchestrator → LLM verdict output: writes verdict
main.py - Report command → Trade analysis: analyzes trades
report.py - Report command → PDF report generation: generates tearsheet
README.md - Trade analysis → PDF report generation: builds report
trade_analyzer/report_generator.py - Unified data provider → Parquet source: reads corpus
- Corpus merge pipeline → Polygon source: merges source data
src/data/pipeline/merge.py