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

讯号执行有误

作者:MultiCharts MC 来源:cxh99.com 发布时间:2012年05月25日
  • 咨询内容:

    时间架构1M。回测日期2001/01/01至今。

    var:myCeiling(0),myBottom(0);
    if date=1010102 then begin
        myCeiling=4836;
        myBottom=4709;
    end;
    if date<>1010102 and date<>date[1] then begin
        myCeiling=0; myBottom=99999;
    end;
    if Time<=0915 then begin
        if high>myCeiling then myCeiling=high;
        if low<myBottom then myBottom=low;
    end;

    if Time>0915 then begin
        buy next bar myCeiling stop;
        sellshort next bar myBottom stop;
    end;

    setexitonclose;

    ===================================================

    我想请问,为什麽我这个交易策略明明是指定0915之後开始交易,

    为什麽2001/1/3交易还正常,从2001/1/4之後每天一开盘就马上交易,而且交易逻辑从哪来我真的看不懂。

    可以为我解惑吗?谢谢。
     


     

  • MC技术部:

    我已经找到问题了,不好意思,谢谢。

     

    编辑文章 by 追梦人 2012-01-03 20:03:35
打印本文打印本文 关闭窗口关闭窗口