feat: add 5 dashboard features — dark mode, trade history, backtests, model insights, alerts

- Dark mode: class-based theme toggle with localStorage persistence and flash prevention
- Trade History (/trades): paginated table, stats cards, equity curve chart with DB API endpoints
- Backtest Viewer (/backtests): log parser for 35 backtest results, sidebar + detail + comparison tabs
- Model Insights: dashboard card + dialog showing feature importance, regime distribution, training history
- Alert/Signal Log (/alerts): signal stats, filterable table with execution tracking
- API: 8 new endpoints with psycopg2 DB connection pool
- Dark mode sweep across books page, about dialog, and all dashboard components
- Architecture docs rewritten with Mermaid diagrams (23 docs)
- README and FEATURES.md rewritten bilingual (Indonesian + English)
- main_live.py: write model_metrics.json on startup and retrain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
GifariKemal
2026-02-09 05:46:54 +07:00
co-authored by Claude Opus 4.6
parent b2dc2dacd7
commit e8355b3f62
230 changed files with 69573 additions and 5673 deletions
@@ -0,0 +1,11 @@
#29 Confluence Scoring Results
Generated: 2026-02-08 06:48:29.232714
Base: #28B (741 trades, 79.8% WR, $2,464)
A: Min 2 SMC elements: 694 trades, 76.5% WR, $1,662.83, DD: 5.3%, Sharpe: 2.21, PF: 1.49, Filtered: 369, Elem dist: {2: 459, 3: 227, 4: 8}, vs #28B: $-800.97
B: Min conf >= 0.55: 741 trades, 79.8% WR, $2,463.80, DD: 3.5%, Sharpe: 3.23, PF: 1.83, Filtered: 0, Elem dist: {1: 126, 2: 389, 3: 215, 4: 11}, vs #28B: $+0.00
C: Min conf >= 0.60: 738 trades, 79.1% WR, $2,067.82, DD: 3.5%, Sharpe: 2.64, PF: 1.65, Filtered: 20, Elem dist: {1: 124, 2: 387, 3: 216, 4: 11}, vs #28B: $-395.98
D: 2 elem + conf>=0.55: 694 trades, 76.5% WR, $1,662.83, DD: 5.3%, Sharpe: 2.21, PF: 1.49, Filtered: 369, Elem dist: {2: 459, 3: 227, 4: 8}, vs #28B: $-800.97
E: Min 3 SMC elements: 410 trades, 69.5% WR, $151.95, DD: 9.2%, Sharpe: 0.31, PF: 1.06, Filtered: 2808, Elem dist: {3: 404, 4: 6}, vs #28B: $-2,311.85
Best: B: Min conf >= 0.55