MQL5 ReferenceStandard LibraryTrade ClassesCPositionInfoSelectByIndex TimeTimeMscTimeUpdateTimeUpdateMscPositionTypeTypeDescriptionMagicIdentifierVolumePriceOpenStopLossTakeProfitPriceCurrentCommissionSwapProfitSymbolCommentInfoIntegerInfoDoubleInfoStringSelectSelectByIndexSelectByMagicSelectByTicketStoreStateCheckState SelectByIndex Selects the position by index for further access to its properties. bool SelectByIndex( int index // position index ); Return Value true – success, false – unable to select position. Select SelectByMagic