MQL5参考标准程序库交易类CPositionInfoPositionType TimeTimeMscTimeUpdateTimeUpdateMscPositionTypeTypeDescriptionMagicIdentifierVolumePriceOpenStopLossTakeProfitPriceCurrentCommissionSwapProfitSymbolCommentInfoIntegerInfoDoubleInfoStringSelectSelectByIndexSelectByMagicSelectByTicketStoreStateCheckState PositionType 获取持仓类型。 ENUM_POSITION_TYPE PositionType() const 返回值 持仓类型 (值为 ENUM_POSITION_TYPE 枚举)。 注释 持仓必须先行使用 Select (通过单号) 或 SelectByIndex (通过索引) 方法选择。 TimeUpdateMsc TypeDescription