I have created an interactive analytics dashboard for MT5 account portfolio managers using React, Vite, and Tailwind CSS.
Features Included:
-
Executive KPI Summary Cards:
- Total Portfolio Equity with total balance baseline and live equity curve changes.
- Total Floating P&L with active trades counter and real-time tick updates.
- Win Rate % & Profit Factor with target progress indicator.
- Max Drawdown % with risk threshold warnings.
- Average Margin Level % with leverage health indicators.
- Net Realized Profit & Sharpe Ratio metrics.
-
Interactive Visualizations & Charts:
- Equity Progression Area Chart: Smooth line/area chart tracking portfolio equity, balance, floating profit, and peak drawdown over selectable timeframes (
1D, 7D, 30D, 90D, 1Y, ALL).
- Account & Symbol P&L Bar Charts: Individual MT5 account performance and symbol profitability breakdowns.
- Asset Class Donut Chart: Allocation breakdown across Forex, Metals/Gold, Indices, and Crypto assets.
- Rich custom hover tooltips and smooth animated transitions.
-
Multi-Account Execution Table:
- Sorting: Click column headers to sort by Equity, Balance, Floating P&L, Win Rate, Max Drawdown, or Margin Level.
- Pagination: Adjustable page sizes (5, 10, 20, 50 rows).
- Batch Controls: Select multiple account checkboxes for batch Pause/Resume or Emergency Position Flatten.
- Account Detail Slide-over Drawer: Click any account row to inspect open orders, close individual trades, adjust risk limits, or pause execution.
-
Live Live-Tick Streaming Simulation & Filters:
- Live Streaming Switch: Simulates live WebSocket MT5 ticks every few seconds to fluctuate floating profits and market prices in real-time.
- Live Filters: Time range selector, Broker dropdown, Account Manager dropdown, Account Type filter, and "At Risk Only" filter.
-
Risk & Heatmap Extensions:
- Currency Exposure Heatmap: Long/Short directional bias and lot volume matrix.
- Monthly ROI Calendar Heatmap: Monthly return matrix across 2024–2025.
- Institutional Report Export: CSV data file download and print-ready PDF preview.
- Global Trading Session Clocks: Live time badges for London, New York, and Tokyo sessions.
- Dark / Light Mode: Clean visual design with a theme toggle.
Files built: index.html, src/index.css, src/types/dashboard.ts, src/mock/mt5Data.ts, src/context/DashboardContext.tsx, src/components/Navbar.tsx, src/components/Sidebar.tsx, src/components/KpiCards.tsx, src/components/FilterBar.tsx, src/components/ChartsSection.tsx, src/components/ExposureHeatmap.tsx, src/components/AccountsTable.tsx, src/components/AccountDetailDrawer.tsx, src/components/PerformanceHeatmapView.tsx, src/components/RiskAlertsPanel.tsx, src/components/ExportModal.tsx, src/App.tsx