可以,
if (timetot0(dynainfo(207))>=(timetot0(closetime(0))-5)) or not(islastbar) then begin
sell(1,0,marketr);
sellshort(1,0,marketr);
end
一定要使用固定時間間隔模式
在日線級別上closetime(0)返回值有問題的。