您现在的位置:程序化交易>> 期货公式>> 交易开拓者(TB)>> 开拓者知识>>正文内容

为何不能过滤掉无效数据?? [开拓者 TB]

  • 咨询内容: Params       

    Vars

        NumericSeries HighestAfterEntry;        // 开仓后出现的最高价
        NumericSeries LowestAfterEntry;         // 开仓后出现的最低价
           
    Begin

           
      If(Data0.Close != InvalidNumeric)
      {
      HighestAfterEntry = Data0.Close - Data1.Close;

      LowestAfterEntry  = Data0.Close - Data1.Close;

      HighestAfterEntry = Max(HighestAfterEntry,HighestAfterEntry[1]);   // 开仓的Bar,将开仓价和当时的收盘价的较大值保留到HighestAfterEntry
       
      LowestAfterEntry  = Min(LowestAfterEntry,LowestAfterEntry[1]);     // 开仓的Bar,将开仓价和当时的收盘价的较小值保留到LowestAfterEntry
               
      PlotNumeric("HighestAfterEntry",HighestAfterEntry);
             
      PlotNumeric("LowestAfterEntry" ,LowestAfterEntry);
      }        
    End

    为何不能过滤掉无效数据??

    DATA0为橡胶1709,DATA1为橡胶1705
    图片1.jpg (35.19 KB, 下载次数: 0) 2017-2-13 15:56:02 上传

     

  • TB技术人员: 自已顶起

     

  • TB客服: 7想法:RU1709无数据时,RU1705的数据就被过滤掉,也就是说2017年2月16日以前,RU1705的数据应该不会显示

     

  • 网友回复: :victory:

     

  • 网友回复:
    7想法:RU1709无数据时,RU1705的数据就被过滤掉,也就是说2017年2月16日以前,RU1705的数据应该不会显示

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容