MQL5 ReferenceStandard LibraryTrade ClassesCHistoryOrderInfoSelectByIndex TimeSetupTimeSetupMscOrderTypeTypeDescriptionStateStateDescriptionTimeExpirationTimeDoneTimeDoneMscTypeFillingTypeFillingDescriptionTypeTimeTypeTimeDescriptionMagicPositionIdVolumeInitialVolumeCurrentPriceOpenStopLossTakeProfitPriceCurrentPriceStopLimitSymbolCommentInfoIntegerInfoDoubleInfoStringTicketSelectByIndex SelectByIndex Selects a historical order by index. bool SelectByIndex( int index // order index ) Parameters index [in] Historical order index. Return Value true – success, false – unable to select order. Ticket CPositionInfo