DocumentationMQL5 ReferenceStandard LibraryTrade ClassesCTradeRequestMagicRequestMagicRequestMagicGets the magic number of the Expert Advisor.ulong RequestMagic() constReturn Value The magic number (ID) of the Expert Advisor, used in the last request.Last updated on 2026-07-24RequestActionDescriptionRequestOrder