自定义套利K线图绘制问题

我测试的绘制了一个09玻璃-09纯碱的套利K线图,日线图的最高和最低与交易所的套利K线图不一样,这个问题我想是不是因为实时BAR的最高与最低两个产品时间没法一一对应,所以最高和最低是绘制不出来的?Vars Plot plt; Bar myBar;Events OnReady() { plt.figure(); plt.setOption("x-format","time");//K线不需要显示设置 } OnBar(ArrayRef<Integer> indexs) { myBar.dateTime=date+time; myBar.open=Data0.Open() - Data1.Open(); myBar.high=Data0.High() - Data1.High(); myBar.low=Data0.Low() - Data1.Low(); myBar.close=Data0.Close - Data1.Close(); //myBar.volume=Vol()/10; //myBar.openInt=OpenInt(); //myBar.turnOver=turnOver(); plt.kline("kline",myBar); }

最高最低没办法也不法确定同时发生的除非你用tick数据