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 @@
#31 Multi-Timeframe H1 Results
Generated: 2026-02-08 09:18:56.106348
Base: #28B (741 trades, 79.8% WR, $2,464)
A: H1 EMA strict: 476 trades, 79.2% WR, $1,311.37, DD: 2.9%, Sharpe: 2.49, PF: 1.64, H1 filtered: 2345, H1 dist: {'BEARISH': 123, 'BULLISH': 353}, vs #28B: $-1,152.43
B: H1 price vs EMA20: 625 trades, 81.8% WR, $2,806.56, DD: 2.5%, Sharpe: 3.97, PF: 2.19, H1 filtered: 1132, H1 dist: {'BEARISH': 235, 'BULLISH': 390}, vs #28B: $+342.76
C: H1 BOS direction: 221 trades, 82.4% WR, $1,207.63, DD: 1.6%, Sharpe: 4.79, PF: 2.51, H1 filtered: 4753, H1 dist: {'BEARISH': 60, 'BULLISH': 161}, vs #28B: $-1,256.17
D: H1 SELL only: 613 trades, 80.6% WR, $2,117.67, DD: 2.8%, Sharpe: 3.30, PF: 1.88, H1 filtered: 1136, H1 dist: {'BEARISH': 185, 'BULLISH': 338, 'NEUTRAL': 90}, vs #28B: $-346.13
E: H1 relaxed: 543 trades, 80.1% WR, $1,576.70, DD: 2.9%, Sharpe: 2.76, PF: 1.71, H1 filtered: 1675, H1 dist: {'BEARISH': 111, 'BULLISH': 340, 'NEUTRAL': 92}, vs #28B: $-887.10
Best: B: H1 price vs EMA20