在MT5的EA中,怎样读取某个品种的合约名称及其编号?

 
如果没有编号,就只读取合约名称。
 
看一下品種規格書
 
tygk:
如果没有编号,就只读取合约名称。


官方文档:


https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_info_string

Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
Documentation on MQL5: Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Symbol Properties - Environment State - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5