好像上半段程序已经可以完成收盘平仓啦,请问下半截程序的用途是什么?
end else begin
if(date=currentdate and time=145500 and currenttime>=145900) begin
sell(1,holding,limitr,close);
sellshort(1,holding,limitr,close);
end
end
上半段和下半段是条件不一样吧
上半段满足此条件平仓if date<refx(date,1)
下半段满足此条件平仓if(date=currentdate and time=145500 and currenttime>=145900)
时间的限制有区别,一个平历史,一个平当前的