From 358fc3d2303d12ffc027d141e787c49b02e69911 Mon Sep 17 00:00:00 2001 From: ramseshk Date: Tue, 4 Aug 2026 03:31:13 +0000 Subject: [PATCH] Professional dashboard with TradingView charts, live data, and backtests Replaced Chart.js with TradingView lightweight-charts for professional-grade equity curves with proper candlestick time series, area fills, and smooth scaling. Fixed WebSocket by installing 'websockets' dependency for uvicorn (was silently failing on upgrade requests). Fixed tab switching: now preserves last data and renders immediately on tab switch instead of waiting for next message. Fixed all API/WS URLs to include /cv prefix for Caddy routing. Design improvements: - Refined dark theme with proper spacing and typography - TradingView charts with gradient fills - 5-column stats bar with key metrics - Per-strategy cards with RUNNING/IDLE badges - Responsive layout (640px and 380px breakpoints) --- dashboard/static/index.html | 535 +++++++++++++++++------------------- 1 file changed, 246 insertions(+), 289 deletions(-) diff --git a/dashboard/static/index.html b/dashboard/static/index.html index 393fb6f..d2d0b1b 100644 --- a/dashboard/static/index.html +++ b/dashboard/static/index.html @@ -3,370 +3,327 @@ -FTDT Quant Lab - - +FTDT Quant Lab — Live Strategy Dashboard + + -
+
-
-
+
+ -
-
Total PnL
-
$0.00
-
0.00%
+
+
Portfolio PnL
+
$0.00
+
0.00%
-
+
- - + +
- -
- - -
- - -
-

Equity Curve — all strategies combined

-
+ +
+
+
+

Equity Curve real-time · all strategies

+
- - -
- - -
-

Recent Trades

-
- - - -
TimeStrategySideSizePricePnL
-
+
+
+

Trade Log most recent 15

+
TimeStrategySideSizePricePnL
- -