MQL5 ReferenceStandard LibraryTrade ClassesCOrderInfoSelectByIndex TicketTimeSetupTimeSetupMscOrderTypeTypeDescriptionStateStateDescriptionTimeExpirationTimeDoneTimeDoneMscTypeFillingTypeFillingDescriptionTypeTimeTypeTimeDescriptionMagicPositionIdVolumeInitialVolumeCurrentPriceOpenStopLossTakeProfitPriceCurrentPriceStopLimitSymbolCommentInfoIntegerInfoDoubleInfoStringStoreStateCheckStateSelectSelectByIndex SelectByIndex Selects an order by index. bool SelectByIndex( int index // order index ) Parameters index [in] Order index. Return Value true – success, false – unable to select order. Select CHistoryOrderInfo