Loading…

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

SettingDefaultWhat it does
CornerCORNER_LEFT_LOWERPanel corner
X offset10Horizontal offset from the corner, in pixels
Y offset10Vertical offset from the corner, in pixels
Font size9Panel font size
Max rows8Maximum number of symbol/magic rows shown
Text colorclrSilverNeutral text colour
Profit colorclrLimeGreenColour for a positive row
Loss colorclrTomatoColour for a negative row

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Indicators.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: Multi-Currency · MT5 Indicator · MQL5 Source Code

MetaTrader 4 & 5 indicators · PolyMaria