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

分享监控#行情延迟#的原代码

作者:开拓者 TB 来源:cxh99.com 发布时间:2023年04月12日
  • 咨询内容:

    Params
    Vars
        Bool con;
    Events
    OnBar(ArrayRef<Integer> indexs)
    {
        If(BarStatus<>2) Return;

        con = (CurrentTime>=0.08 and CurrentTime<=0.0901);
        con = (CurrentTime>=0.12 and CurrentTime<=0.1331) or con;
        con = (CurrentTime>=0.20 and CurrentTime<=0.2101) or con;
        
        If(con)
        {    
            FileAppend("C:\\t.tbf",Text(CurrentDate));
            FileAppend("C:\\t.tbf","CurrentTime:    "+Text(CurrentTime));
            FileAppend("C:\\t.tbf","Q _ lastTime:    "+Text(Q_LastTime));
            
            FileAppend("C:\\t.tbf","行情延迟秒数:    "+Text(DateTimeDiff(CurrentTime,Q_LastTime)));        
        }
    }

     

    期货 策略
打印本文打印本文 关闭窗口关闭窗口