合约 因为MT5中没有国内期货合约, 首先要通过CustomSymbolCreate在MT5里创建商品期货股指原油的全市场合约. 行情,成交量和持仓量 然后通过MQL5中的MqlRates结构 来生成行情K线 , 该结构体如下: struct MqlRates { datetime time; // Period start time double open; // Open price double high; // The highest price of the period double low;