Daily P/L by Magic Number - per-EA profit table for today, week and month:
Author: Jefry Francisco Rodriguez Campos
Nice to see P/L grouped by magic. A few details that often trip up this kind of report, in case they’re worth checking.
- Profit sits on the closing deal, but commission is often charged on the entry deal and swap accrues over the holding time, so the per-EA figure for “today” changes depending on whether you add DEAL_COMMISSION, DEAL_SWAP and DEAL_FEE and on which deal’s time you use.
- Partial closes and reversals (DEAL_ENTRY_INOUT) split one position into several deals.
- Day, week and month boundaries should follow server time, not local time, if you want the table to match the broker statement. Does the table include costs from the entry deals of positions that are still open? And what does the intraday drawdown use: the sequence of closed P/L, or floating equity?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Daily P/L by Magic Number - per-EA profit table for today, week and month:
On-chart table that shows how much each Expert Advisor (magic number) made or lost today, this week and this month, with closed and floating profit, number of closed trades today and the intraday drawdown. Manual trades (magic 0) get their own row and a TOTAL row sums the whole account. MT5 only shows one account-wide balance, so when several EAs trade together you cannot see which one is carrying the day or bleeding. Give your magic numbers readable names ("1001=Breakout;1002=Grid"), choose the corner and theme, and decide whether floating profit is included. Read-only: it never opens, modifies or closes a trade, and it works in the Strategy Tester too (it reads the tester's own deals), so you can try it before using it on a demo or live account. No DLLs, no web requests.
Author: Jefry Francisco Rodriguez Campos