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 @@
#28 Smart Breakeven Results
Generated: 2026-02-08 06:07:56.973899
Base: #24B (739 trades, 80.4% WR, $2,235)
A: Smart BE 0.3x ATR: 740 trades, 80.1% WR, $2,055.84, DD: 4.3%, Sharpe: 2.69, PF: 1.70, BE: 235 (avg $4.01, 235 wins), FC cuts: 0, vs #24B: $-179.16
B: Smart BE 0.5x ATR: 741 trades, 79.8% WR, $2,463.80, DD: 3.5%, Sharpe: 3.23, PF: 1.83, BE: 227 (avg $5.98, 227 wins), FC cuts: 0, vs #24B: $+228.80
C: First-candle 0.5x ATR: 828 trades, 63.9% WR, $1,573.30, DD: 3.0%, Sharpe: 2.12, PF: 1.59, BE: 181 (avg $4.01, 181 wins), FC cuts: 299, vs #24B: $-661.70
D: A+C (0.3x BE + FC): 827 trades, 63.4% WR, $1,411.75, DD: 3.0%, Sharpe: 1.94, PF: 1.52, BE: 173 (avg $4.07, 173 wins), FC cuts: 302, vs #24B: $-823.25
E: B+C (0.5x BE + FC): 830 trades, 65.1% WR, $1,891.09, DD: 2.1%, Sharpe: 2.57, PF: 1.69, BE: 173 (avg $5.89, 173 wins), FC cuts: 288, vs #24B: $-343.91
Best: B: Smart BE 0.5x ATR