I want to set the Magic Number in my robots in Metatrader 5 (MQL5). In MQL4 was easy, on OrderSend() I just put the Magic number in order to identify what orders are from each expert advisors (I want to use several different robots, and each robot can only close the positions the same robot open, not other orders),
Please help, I understand a little MQL5 and have made some robots, but I’m not sure how to set the Magic Number.
Thank you!