Is it possible to execute OrderSend requests with different magic IDs from the same Expert Advisor?

 

My Expert Advisor (EA) supports multiple virtual trading "agents", each with different trading parameters and lotsizes.

The Expert Advisor ID (magic number) is a parameter in the MqlTradeRequest input structure to OrderSend().

It would be very useful to be able to distinguish the various trade results for each of the  virtual trading "agents" by unique magic IDs for each agent.

Would this approach be acceptable to the trade Server?

Is there a possible downside to this approach?

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
Don Baechtel: Is it possible to execute OrderSend requests with different magic IDs from the same Expert Advisor?

Obviously yes! That is why it is a variable in the MqlTradeRequest input structure.

It would have been quick and easy for you to test it yourself too.

 
Fernando Carreiro #:

Obviously yes! That is why it is a variable in the MqlTradeRequest input structure.

It would have been quick and easy for you to test it yourself too.

Thanks.