Commit 34a1e2b
feat: quantitative learning engine — AI learns from its own trade numbers
New module: skopaq/learning/tracker.py
- Signal accuracy tracking per symbol (win rate, avg P&L)
- Confidence calibration (AI overconfident/underconfident detection)
- Sector performance breakdown (IT, banking, energy, etc.)
- Regime performance (high/low VIX, trending/ranging)
- Time-of-day entry patterns (best hours for trades)
- Stop-loss effectiveness analysis (too tight? too loose?)
- Holding period optimization per symbol
- generate_learning_insights() — comprehensive AI self-assessment
New MCP tools (36 total):
- get_learning_insights: Full learning report with all patterns
- get_symbol_stats: Per-symbol AI performance stats
Database: signal_records table (Fly.io Postgres)
Docs: architecture/learning.md added
The AI now knows its own strengths, weaknesses, and blind spots.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e040d3c commit 34a1e2b
5 files changed
Lines changed: 568 additions & 1 deletion
File tree
- docs/architecture
- skopaq
- learning
- tests/unit/chat
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments