http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=2183&skin=0
信号延时参考这贴里面ADMIN的回答
我简化了一下,根据我的理解来的
if 开多条件 and 持仓判断 and timetot0(currenttime)-timetot0(extgbdata('time1'))>n then begin
tbuy....;
extgbdataset('time1',currenttime);
end
if 开多条件 and 持仓判断 and timetot0(currenttime)-timetot0('time1)>n then begin
tbuy....;
time1:=currenttime;
end
if time>=151458 then time1:=0;
这样不行吗?
if 开多条件 and 持仓判断 and timetot0(currenttime)-timetot0('time1)>n then begin tbuy....; time1:=currenttime; end if time>=151458 then time1:=0; 这样可以吧? |
我简化了一下,根据我的理解来的 if 开多条件 and 持仓判断 and timetot0(currenttime)-timetot0(extgbdata('time1'))>n then begin tbuy....; extgbdataset('time1',currenttime); end time1 不用设定初始值吗 就直接这样用吗 |