MQL5 リファレンス標準ライブラリトレードクラスCPositionInfoMagic TimeTimeMscTimeUpdateTimeUpdateMscPositionTypeTypeDescriptionMagicIdentifierVolumePriceOpenStopLossTakeProfitPriceCurrentCommissionSwapProfitSymbolCommentInfoIntegerInfoDoubleInfoStringSelectSelectByIndexSelectByMagicSelectByTicketStoreStateCheckState Magic 注文を出したエキスパートアドバイザーの識別子を取得します。 long Magic() const 戻り値 注文を出したエキスパートアドバイザーの識別子 注意事項 ポジションは Select(チケットによる選択)または SelectByIndex(インデックスによる選択)メソッドで選択されるべきです。 TypeDescription Identifier