jawa2000 发表于 2017-12-17 11:58:59

15分跨周期调用60分的close[2] close[1]数据不对

        15分跨周期调用60分的close close数据不对

  我在15分的周期下,调取60分的 的close close  OPEN   OPEN    数据出错,请问版主如何解决这一问题


     NumericSeries Open60;

        NumericSeries Close60;


Open60 = DataConvert(Open,"min",60,"Open");

        Close60 = DataConvert(Close,"min",60,"Close");



//出标识

Unplot("8",0);
                 Unplot("18",0);
                  Unplot("88",0);  Unplot("89",0); Unplot("99",0);  Unplot("98",0);  
                 Unplot("66",0);

         if(BarStatus==2)


          {plotstring("99",Text(IntPart((Close60+Open60)/2 ) ),Low*0.98,White);} //60分取数  出错
                                {plotstring("99",Text(IntPart(Close60 )) ,Low*0.98,White);} //取数  出错

小米 发表于 2017-12-19 09:06:23

这里建议使用读写数据库的方式来实现跨周期调用,dataconvert不能满足您的需求。。
请参考此贴第7条http://bbs.tb18.net/thread-2785-1-1.html
页: [1]
查看完整版本: 15分跨周期调用60分的close[2] close[1]数据不对