How to include Magic Number in Trade History Report? - page 2

 
Dino Pablo Collufio #:

Sorry, but it is ridiculous, if you activate the column MAGIC and the MAGICs appears in the console, Why not in the reports? To  me is a bug of MT5 and we should ask to solve it to MT5 guys.

Easy feature: To include all columns active in the console when reports (both in html and excel) are generated. Similar feature already present in MT4...


Anyone know how to arrive this request or fix to MT5 programers?

You already have--right here and right now in this Forum. There is no special place. Metaquotes developers may see your request.
 
John Dowe:

Hi,

is there any way to include the Magic Number in the trade history report (XSLX or HTML)?

It seems to be impossible to evaluate the results by EA if the Magic Number insn't included.

Thanks for your help!

https://www.mql5.com/en/code/66158 I vibecoded this script for MT5 and it reports nicely by magic, currency and date, for MT4 is way harder to achieve the same specially the draw down PeakDD% because it relies heavily on HistoryDeal(), which does not exist in MT4.
Myfxbook and FXBlue report tools work fine if they are live tracking positions, otherwise they won't produce accurate draw down history
Report by Magic and currency MT5 script for account PNL, trade statistics filtered optionally by date range and exported to CSV
Report by Magic and currency MT5 script for account PNL, trade statistics filtered optionally by date range and exported to CSV
  • 2025.11.18
  • www.mql5.com
Exports comprehensive trading statistics to a CSV file with optional date filter.