MQL5参考标准程序库交易类CPositionInfoIdentifier TimeTimeMscTimeUpdateTimeUpdateMscPositionTypeTypeDescriptionMagicIdentifierVolumePriceOpenStopLossTakeProfitPriceCurrentCommissionSwapProfitSymbolCommentInfoIntegerInfoDoubleInfoStringSelectSelectByIndexSelectByMagicSelectByTicketStoreStateCheckState 标识符 获取仓位 ID。 long Identifier() const 返回值 持仓的ID。 注释 持仓必须先行使用 Select (通过单号) 或 SelectByIndex (通过索引) 方法选择。 Magic Volume