Export Report missing information

 
When exporting a report from the terminal, The Comment is only on the INs and not the OUTs. Also, magic number is shown in terminal but not in the report.

I'm just trying to analyze the PL of each chart in history.

Any assistance greatly appreciated.
 

To export positions history:

https://www.mql5.com/en/code/21434

Also, for deals history:

https://www.mql5.com/en/code/24608

Export Positions History V1
Export Positions History V1
  • www.mql5.com
Export history of closed positions from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.