MQL5 ReferenceStandard LibraryTrade ClassesCHistoryOrderInfoState TimeSetupTimeSetupMscOrderTypeTypeDescriptionStateStateDescriptionTimeExpirationTimeDoneTimeDoneMscTypeFillingTypeFillingDescriptionTypeTimeTypeTimeDescriptionMagicPositionIdVolumeInitialVolumeCurrentPriceOpenStopLossTakeProfitPriceCurrentPriceStopLimitSymbolCommentInfoIntegerInfoDoubleInfoStringTicketSelectByIndex State Gets the order state. ENUM_ORDER_STATE State() const Return Value Order state from ENUM_ORDER_STATE enumeration. Note The historical order should be selected using the Ticket (by ticket) or SelectByIndex (by index) methods. TypeDescription StateDescription