MQL5 ReferenceStandard LibraryTrade ClassesCDealInfoTicket OrderTimeTimeMscDealTypeTypeDescriptionEntryEntryDescriptionMagicPositionIdVolumePriceCommisionSwapProfitSymbolCommentInfoIntegerInfoDoubleInfoStringTicketSelectByIndex Ticket (Get method) Gets the deal ticket. ulong Ticket() const Return Value Deal ticket. Ticket (Set method) Select the position for further work. void Ticket( ulong ticket // ticket ) Parameters ticket [in] Deal ticket. InfoString SelectByIndex