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