在程序里有下单时间条件:
TimeCond:=time>091500 and time<145000;
if cw=0 and TimeCond and short then begin//short是开空条件
buyshort(1,lots,limitr,o+Jump);//用开盘价成交
end
但今早上9:14就发开空单,然后被系统拒绝而撤单,之后未再开空单。
请问有时间条件限制怎么还会发单呢?如何过滤集合竞价时段发单呢?
谢谢
cw,short,lots,Jump几个参数都没有问题的。
Time是获取本地计算机时间吧?
除了“勾选只在交易时间段交易”,还有其他可以通过某些函数来过滤吗?
多谢
楼主本地时间绝对正确吗?是不是因为你本地时间有误,用本地时间做判断,之间可能是有些许误差。
abb:=not(islastbar) or dynainfo(207)>=091500;
TimeCond:=time>091500 and time<145000;
if abb and cw=0 and TimeCond and short then begin//short是开空条件
buyshort(1,lots,limitr,o+Jump);//用开盘价成交
end
请问阿火:
如果用abb:=not(islastbar) or dynainfo(207)>=091500;
那以后每一个新周期都是最后一个周期呀,这样是不是会导致都不发单了呢?