MQL5 ReferenceStandard LibraryTrade ClassesCOrderInfoTicket TicketTimeSetupTimeSetupMscOrderTypeTypeDescriptionStateStateDescriptionTimeExpirationTimeDoneTimeDoneMscTypeFillingTypeFillingDescriptionTypeTimeTypeTimeDescriptionMagicPositionIdVolumeInitialVolumeCurrentPriceOpenStopLossTakeProfitPriceCurrentPriceStopLimitSymbolCommentInfoIntegerInfoDoubleInfoStringStoreStateCheckStateSelectSelectByIndex Ticket Gets the ticket of an order. ulong Ticket() const Return Value Order ticket if successful, otherwise - ULONG_MAX. Note The order should be selected using the Select (by ticket) or SelectByIndex (by index) methods. COrderInfo TimeSetup