Daily Attribution Mini Board
On an account running more than one EA, or trading more than one symbol from the same chart, the account panel's single "today's P/L" number hides which strategy or instrument is actually responsible. This board groups every trade touching the account today by (symbol, magic number) pair and lists each group's net profit (profit + swap + commission), sorted by the size of its contribution, so the biggest winners and losers are the first rows shown. Each row sums two things: closed trades whose close time falls on or after the start of the current server day, and the FULL floating profit of every order still open right now, regardless of when that open position was actually opened. A position opened yesterday and still open contributes its whole floating swing to today's row, not just today's slice of it - MQL4 keeps no intraday equity-curve snapshot to split that swing against, so there is no honest way to isolate "today's part" of an overnight position's floating P/L without external state this indicator does not keep. This is stated here plainly rather than implying exact calendar-day attribution for positions that span more than one day. Recomputing a row means a full backward scan of order history, which would be wasted work run on every single tick, so the board only rebuilds on a 5-second timer. Notes and limitations "Today" is computed from the start of the server calendar day based on TimeCurrent(), which is not necessarily the broker's actual trading-day rollover time (many brokers roll the trading day over at a specific server hour, not midnight). Balance and credit operations (deposits, withdrawals, bonus credits) are excluded from every row - only actual buy/sell trades are attributed. As with any account-wide scan, groups include every symbol currently open on the account, not just the chart's own symbol.
Indicator · MT5 · v1.0 · Free
About Daily Attribution Mini Board
Daily Attribution Mini Board is an indicator for MetaTrader 5. It has 8 settings, such as Corner, X offset and Y offset. MQL source code included.
Files in the download: DailyAttributionBoard.ex5, DailyAttributionBoard.mq5, DailyAttributionBoard.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Corner | CORNER_LEFT_LOWER | Panel corner |
| X offset | 10 | Horizontal offset from the corner, in pixels |
| Y offset | 10 | Vertical offset from the corner, in pixels |
| Font size | 9 | Panel font size |
| Max rows | 8 | Maximum number of symbol/magic rows shown |
| Text color | clrSilver | Neutral text colour |
| Profit color | clrLimeGreen | Colour for a positive row |
| Loss color | clrTomato | Colour for a negative row |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Indicators.
- Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
- Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: Multi-Currency · MT5 Indicator · MQL5 Source Code