Commit Graph

3 Commits

Author SHA1 Message Date
Andrew Kaszubski b54d6baa73 feat(simulation): add Economic Conditions for regime tagging and evaluation - Issue #35 (53 tests)
Implements comprehensive economic and market regime analysis:
- MarketRegime enum (BULL, MODERATE_BULL, SIDEWAYS, MODERATE_BEAR, BEAR)
- VolatilityRegime enum (LOW, NORMAL, ELEVATED, HIGH)
- RegimeDetector class for market/volatility regime detection
- RegimeEvaluator for strategy performance by regime

Features:
- Statistical regime detection from return series
- Trend strength and confidence assessment
- Rolling window regime tagging
- Performance breakdown by market regime
- Performance breakdown by volatility regime
- Regime transition detection and tracking
- Regime-specific strategy recommendations
- Overall regime score and adaptability metrics
- Comprehensive report generation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:13:34 +11:00
Andrew Kaszubski 76eac65eb3 feat(simulation): add Strategy Comparator for performance comparison - Issue #34 (43 tests)
Implements comprehensive strategy comparison framework:
- StrategyMetrics dataclass for performance data
- PairwiseComparison for head-to-head analysis
- ComparisonResult with rankings and recommendations
- StrategyComparator main class

Features:
- Multi-criteria ranking (Sharpe, Sortino, returns, drawdown, etc.)
- Welch's t-test for statistical significance
- Summary statistics across all strategies
- Automated recommendations (volatility, drawdown, trade count warnings)
- Return distribution analysis with skew/kurtosis
- Ranking table generation with average rank calculation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:05:35 +11:00
Andrew Kaszubski e7bff2c4cf feat(simulation): add Scenario Runner for parallel portfolio simulations - Issue #33 (45 tests)
Implements parallel scenario execution framework:
- ScenarioRunner with sequential, threaded, and process execution modes
- ScenarioConfig for configuring simulation parameters
- ScenarioResult for capturing simulation outcomes
- RunnerProgress for tracking execution progress
- Progress callbacks for real-time updates
- Cancellation support for long-running batches
- ScenarioBatchBuilder for parameter sweeps and variations
- Result aggregation with best/worst scenario identification

Features:
- Thread-safe parallel execution with configurable worker count
- FIFO result ordering preserved regardless of completion order
- Exception handling with graceful degradation
- Timeout support per scenario
- Cartesian product generation for parameter variations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 21:59:12 +11:00