Analyse report by MagicNumber

 

Hi,

I have been running test EAs in one demo account with different Magic Numbers.

Is there any way to view my trade history and filter based on Magic Number?

I do see Magic Number in the History section - but when I try to export it, the MagicNumber does not.

Is there any tool that would give me a P/L for each Magic Number for MT5?

Thanks.

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
Account Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

Export the trade history to csv and load it into Excel then you can export the MagicNumber as well: https://www.mql5.com/en/search#!keyword=trade%20history&module=mql5_module_codebase

e.g.: https://www.mql5.com/en/code/24626

 
Thank you so much Carl. This is very helpful.
Reason: