打印本文打印本文 关闭窗口关闭窗口

智能交易评测时缺少交易

作者:飞狐交易师 来源:cxh99.com 发布时间:2019年06月16日
>
  • 咨询内容:

    在做指标的智能交易评测时,部分K线缺少交易,语句如下:

    If open>ref(close,1) Then Buy  this bar OpenD;
    If close<=ref(close,1) Then Sell this Bar close;
    If close<=ref(close,1) Then Sell Short this Bar close;
    If open>ref(close,1) Then BuyToCover this bar OpenD;

    图中黄圈处缺少交易,无法以当天的收盘价买入。

    交易师测评缺少交易.png

  • 网友回复: 说错了 应该是系统无法以黄圈处K线的开盘价买进。
打印本文打印本文 关闭窗口关闭窗口