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
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?