AccountStatsPanel
- Indicadores
- Versão: 2.0
- Ativações: 10
# Account Stats Panel — Professional Trading Statistics for MetaTrader 5
A complete, canvas-rendered statistics dashboard for your trading account.
Track your real risk day by day: maximum equity drawdown (eDD), drawdown %, traded volume and closed profit — organized into daily and monthly tables, plus a smooth interactive profit chart. All data is measured tick-by-tick in real time and saved locally, so your statistics survive terminal restarts.
## KEY FEATURES
**Live Account Info**
- Leverage (displayed as 1:∞ above 1:10,000), account ID and name
- Balance, Equity, floating PnL
- Open positions strip: BUY/SELL count, volume and floating P/L
- Demo/Real label with automatic cent-account detection ($ / C profit mode)
**Daily Statistics Table**
- DATE | eDD | %DD | LOTS | PROFIT per day
- Calendar-accurate rows: weekends and holidays always appear (empty rows), so your timeline never has hidden gaps
- Monday rows highlighted; "Today" row highlighted and updated in real time
- ΣWeek (Monday-based) and ΣMonth summary rows
**Monthly Statistics Table**
- Monthly aggregation with the same metrics + YTD and ALL-TIME totals
**Interactive Daily Profit Chart**
- Smooth Catmull-Rom curve with glow effect and gradient fill (green above zero, orange below)
- Pulsing marker on today's point, highest/lowest labels
- Clean Y axis with nice 1/2/5×10^k grid steps and bold zero line
- Hover crosshair with date & profit tooltip, snap to nearest day
- Weekends included in the timeline
**True eDD Measurement**
- eDD = maximum distance from the day-start balance to equity, sampled on every tick while the indicator runs
- Resets at the new trading day (server midnight), keeping drawdown relative to the correct starting balance
- Closed profit counts deals only (profit + swap + commission, INOUT counted once)
**Persistent & Safe Storage**
- Daily results stored in a checksum-protected binary file per account (Common\Files)
- Live eDD peak is restored after restart; missing days are back-filled from trade history
- History is scanned once — then only today's deals are refreshed, keeping the terminal light
**Clean Canvas Engine**
- The whole panel is one bitmap: no hundreds of chart objects, no lag
- Text is auto-clipped inside cells; layout scales from a single font-size input
- Fixed panel size and position — dragging or resizing the subwindow never breaks it
- Pagination (<< >>) directly in table headers, page by calendar day or month
## INPUTS
| Parameter | Default | Description |
|---|---|---|
| InpDayRows | 10 | Number of day rows in the daily table |
| InpMonthRows | 10 | Number of rows in the monthly table |
| InpChartDays | 30 | Days shown in the profit chart |
| InpX / InpY | 10 / 10 | Panel position (px) |
| InpPanelWidth / InpPanelHeight | 0 / 0 | 0 = auto by font; >0 = fixed size |
| InpFontName | Consolas | Font family |
| InpFontSize | 3 | Font size (pt) — master zoom of the whole panel |
## NOTES
- Platform: MetaTrader 5. Attach to any chart; the panel opens in a separate window.
- Use one instance per account. Data files are keyed by account login and stored locally per machine.
- eDD reflects intraday equity dips only while the terminal is running; days with the terminal closed are reconstructed from closed-deal history (realized drawdown).
- After recompiling or updating, remove and re-attach the indicator so the new build is loaded.
