Real time account overview MT4
- Utilità
- Hyoseog Kim
- Versione: 1.0
Real-time account overview and per-strategy P&L tracking, all in one clean panel.
Overview
Dashboard MT5 is a lightweight Expert Advisor that overlays a live information panel directly on your MetaTrader 4 chart. It gives you an instant snapshot of your account health and the performance of each trading strategy — identified by magic number — without ever leaving the platform.
Whether you run a single EA or a dozen simultaneous strategies, Dashboard MT4 keeps every key metric visible at a glance.
Key Features
Account Information
- Balance, Equity, Used Margin, Free Margin — updated every tick and on a configurable timer
- Free Margin turns red automatically when it drops below 10% of balance
- Current floating drawdown displayed as both dollar amount and percentage
- Session Max Drawdown tracked from the moment the EA is attached (peak-to-trough, equity-based)
Per-Strategy P&L Tracking
- Assign any number of magic numbers in a single input field (comma-separated)
- Wildcard prefix matching supported — e.g., 5*** captures magic numbers 5001, 5999, 50001, and so on
- Each group shows its own daily P&L and trade count in real time
- Manual closes (magic = 0) are correctly attributed back to the originating strategy via Position ID matching — no missed profits or losses
Summary Section
- Monthly, Weekly, and Daily totals aggregated across all tracked groups
- Each summary row shows P&L amount, trade count, and percentage return vs. current balance
- All period boundaries calculated from broker server time — not your local PC clock
Other
- Optional symbol filter — restrict tracking to a single instrument (e.g., XAUUSD only)
- Timer-based refresh ensures the panel stays current even during off-market or no-tick periods
- Panel updates text and color only — no object recreation, no flicker
- Fully customizable: panel position, size, all colors, font sizes, and refresh interval
Input Parameters
| Parameter | Description |
|---|---|
| MagicList | Comma-separated magic numbers or prefixes (e.g., 111, 222, 5*** ) |
| TargetSymbol | Filter to one symbol; leave blank for all symbols |
| PanelX / PanelY | Panel anchor position on the chart |
| PanelWidth | Panel width in pixels |
| UpdateSeconds | Refresh interval in seconds (default: 2) |
| Colors | Background, border, profit, loss, separator, and summary row colors — all configurable |
| Font Sizes | Title, header, body, and summary rows — independently adjustable |
How It Works
Attach the EA to any chart. Configure your magic numbers in MagicList and set an optional symbol filter. The panel appears immediately and refreshes on every tick as well as on a background timer — so it remains accurate during weekends or slow market hours.
Period P&L is calculated directly from the MT4 deal history using HistorySelect . Commission, swap, and profit are all included. The daily boundary resets at broker midnight (server time), so the numbers always match what you see in your MT4 terminal history.
Requirements
- MetaTrader 4 (any build)
- Works on any symbol and any timeframe
- Attach one instance per chart; multiple instances on different charts are supported
Notes
- Max Drawdown resets when the EA is restarted or reattached — it is a session metric, not account-lifetime
- Wildcard matching ( *** ) uses prefix logic: 10*** matches any magic number whose string representation begins with 10
- The EA does not place, modify, or close any trades
