MQL5参考标准程序库交易类CPositionInfoSelectByIndex TimeTimeMscTimeUpdateTimeUpdateMscPositionTypeTypeDescriptionMagicIdentifierVolumePriceOpenStopLossTakeProfitPriceCurrentCommissionSwapProfitSymbolCommentInfoIntegerInfoDoubleInfoStringSelectSelectByIndexSelectByMagicSelectByTicketStoreStateCheckState SelectByIndex 以索引选择持仓, 用于进一步访问属性。 bool SelectByIndex( int index // 持仓索引 ); 返回值 true 成功情况下 false 如果不能选择持仓。 Select SelectByMagic