diff --git a/src/__pycache__/web_dashboard.cpython-310.pyc b/src/__pycache__/web_dashboard.cpython-310.pyc index ed02f62..90cf925 100644 Binary files a/src/__pycache__/web_dashboard.cpython-310.pyc and b/src/__pycache__/web_dashboard.cpython-310.pyc differ diff --git a/src/web_dashboard.py b/src/web_dashboard.py index 282a909..052051d 100644 --- a/src/web_dashboard.py +++ b/src/web_dashboard.py @@ -106,6 +106,12 @@ async def root(): trades_count = state.get('active_positions', 0) # ← FIXED: Use real count! prices = state.get('prices', {}) + + # P&L from state + pnl_usdt = state.get("pnl_usdt", 0) + pnl_pct = state.get("pnl_pct", 0) + pnl_status = state.get("pnl_status", "⚪ BREAK") + pnl_color = state.get("pnl_color", "neutral") html = f'''