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:
co-authored by
Claude Opus 4.6
parent
b2dc2dacd7
commit
e8355b3f62
@@ -0,0 +1,39 @@
|
||||
================================================================================
|
||||
XAUBOT AI — SMC + H4 Zone + Tight SL (RR 1:2)
|
||||
================================================================================
|
||||
Generated: 2026-02-07 10:57:02
|
||||
Period: 2025-08-01 to 2026-02-07
|
||||
|
||||
--- H4 ZONE FILTER STATS ---
|
||||
Total filtered: 7040
|
||||
BUY filtered: 4176
|
||||
SELL filtered: 2864
|
||||
Trades in OB zone: 0
|
||||
Trades in FVG zone: 0
|
||||
|
||||
--- TIGHT SL STATS ---
|
||||
H4 zone SL used: 0
|
||||
Baseline SL used: 0
|
||||
Avg tight SL dist: $0.00
|
||||
Avg baseline SL dist: $0.00
|
||||
|
||||
--- PERFORMANCE ---
|
||||
Trades: 0 | Wins: 0 | Losses: 0
|
||||
Win Rate: 0.0% | PF: 0.00
|
||||
Net PnL: $0.00 | Sharpe: 0.00
|
||||
Max DD: 0.0% ($0.00)
|
||||
Avg Win: $0.00 | Avg Loss: $0.00
|
||||
|
||||
--- EXIT REASONS ---
|
||||
|
||||
--- DIRECTION ---
|
||||
BUY: 0 trades
|
||||
SELL: 0 trades
|
||||
|
||||
--- H4 ZONE TYPE ---
|
||||
OB : 0 trades, 0.0% WR, $0.00
|
||||
FVG : 0 trades, 0.0% WR, $0.00
|
||||
|
||||
--- SL TYPE BREAKDOWN ---
|
||||
h4_zone : 0 trades, 0.0% WR, $0.00
|
||||
baseline : 0 trades, 0.0% WR, $0.00
|
||||
Binary file not shown.
@@ -0,0 +1,41 @@
|
||||
================================================================================
|
||||
XAUBOT AI — SMC + H4 Zone + Tight SL (RR 1:2)
|
||||
================================================================================
|
||||
Generated: 2026-02-07 11:27:10
|
||||
Period: 2025-08-01 to 2026-02-07
|
||||
|
||||
--- H4 ZONE FILTER STATS ---
|
||||
Total filtered: 6983
|
||||
BUY filtered: 4140
|
||||
SELL filtered: 2843
|
||||
Trades in OB zone: 3
|
||||
Trades in FVG zone: 4
|
||||
|
||||
--- TIGHT SL STATS ---
|
||||
H4 zone SL used: 2
|
||||
Baseline SL used: 5
|
||||
Avg tight SL dist: $77.37
|
||||
Avg baseline SL dist: $58.27
|
||||
|
||||
--- PERFORMANCE ---
|
||||
Trades: 7 | Wins: 6 | Losses: 1
|
||||
Win Rate: 85.7% | PF: 3.38
|
||||
Net PnL: $79.81 | Sharpe: 8.73
|
||||
Max DD: 0.7% ($33.60)
|
||||
Avg Win: $18.90 | Avg Loss: $33.60
|
||||
|
||||
--- EXIT REASONS ---
|
||||
trailing_sl : 6 (85.7%)
|
||||
max_loss : 1 (14.3%)
|
||||
|
||||
--- DIRECTION ---
|
||||
BUY: 5 trades, 100.0% WR, $83.30
|
||||
SELL: 2 trades, 50.0% WR, $-3.49
|
||||
|
||||
--- H4 ZONE TYPE ---
|
||||
OB : 3 trades, 66.7% WR, $13.30
|
||||
FVG : 4 trades, 100.0% WR, $66.51
|
||||
|
||||
--- SL TYPE BREAKDOWN ---
|
||||
h4_zone : 2 trades, 100.0% WR, $42.18
|
||||
baseline : 5 trades, 80.0% WR, $37.63
|
||||
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
================================================================================
|
||||
XAUBOT AI — SMC + H4 Zone + Tight SL (RR 1:2)
|
||||
================================================================================
|
||||
Generated: 2026-02-07 11:55:33
|
||||
Period: 2025-08-01 to 2026-02-07
|
||||
|
||||
--- H4 ZONE FILTER STATS ---
|
||||
Total filtered: 6850
|
||||
BUY filtered: 4055
|
||||
SELL filtered: 2795
|
||||
Trades in OB zone: 6
|
||||
Trades in FVG zone: 16
|
||||
|
||||
--- TIGHT SL STATS ---
|
||||
H4 zone SL used: 8
|
||||
Baseline SL used: 14
|
||||
Avg tight SL dist: $79.90
|
||||
Avg baseline SL dist: $68.90
|
||||
|
||||
--- PERFORMANCE ---
|
||||
Trades: 22 | Wins: 18 | Losses: 4
|
||||
Win Rate: 81.8% | PF: 5.02
|
||||
Net PnL: $403.11 | Sharpe: 7.60
|
||||
Max DD: 0.9% ($46.98)
|
||||
Avg Win: $27.97 | Avg Loss: $25.08
|
||||
|
||||
--- EXIT REASONS ---
|
||||
trailing_sl : 12 (54.5%)
|
||||
breakeven_exit : 3 (13.6%)
|
||||
early_cut : 2 (9.1%)
|
||||
smart_tp : 2 (9.1%)
|
||||
peak_protect : 1 (4.5%)
|
||||
take_profit : 1 (4.5%)
|
||||
max_loss : 1 (4.5%)
|
||||
|
||||
--- DIRECTION ---
|
||||
BUY: 16 trades, 81.2% WR, $154.66
|
||||
SELL: 6 trades, 83.3% WR, $248.45
|
||||
|
||||
--- H4 ZONE TYPE ---
|
||||
OB : 6 trades, 83.3% WR, $90.05
|
||||
FVG : 16 trades, 81.2% WR, $313.06
|
||||
|
||||
--- SL TYPE BREAKDOWN ---
|
||||
h4_zone : 8 trades, 87.5% WR, $70.23
|
||||
baseline : 14 trades, 78.6% WR, $332.88
|
||||
Binary file not shown.
Reference in New Issue
Block a user