Hierarchical ML Pipeline for trading predictions:
- Level 0: Attention Models (volatility/flow classification)
- Level 1: Base Models (XGBoost per symbol/timeframe)
- Level 2: Metamodels (XGBoost Stacking + Neural Gating)
Key components:
- src/pipelines/hierarchical_pipeline.py - Main prediction pipeline
- src/models/ - All ML model classes
- src/training/ - Training utilities
- src/api/ - FastAPI endpoints
- scripts/ - Training and evaluation scripts
- config/ - YAML configurations
Note: Trained models (*.joblib, *.pt) are gitignored.
Regenerate with training scripts.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
681 B
JSON
26 lines
681 B
JSON
[
|
|
{
|
|
"strategy_name": "conservative",
|
|
"strategy_description": "Very selective - only best setups",
|
|
"symbol": "GBPUSD",
|
|
"period": "2024-11-04 to 2024-11-14",
|
|
"total_signals": 285,
|
|
"filtered_out": 239,
|
|
"executed_trades": 46,
|
|
"filter_rate": 0.8386,
|
|
"wins": 18,
|
|
"losses": 28,
|
|
"win_rate": 0.3913,
|
|
"total_profit_r": -7.25,
|
|
"avg_profit_r": -0.1575,
|
|
"expectancy": -0.1575,
|
|
"profit_factor": 0.66,
|
|
"max_consecutive_losses": 6,
|
|
"max_drawdown_r": 8.45,
|
|
"avg_attention_winners": 1.436,
|
|
"avg_attention_losers": 1.458,
|
|
"avg_confidence_winners": 0.74,
|
|
"avg_confidence_losers": 0.751,
|
|
"avg_rr_used": 2.0
|
|
}
|
|
] |