咨询内容:
你好,我的程序是用5分钟图表固定时间间隔1秒执行,设置了收盘前一分钟平仓,
if time>=145900 and time<150100 then
begin
sellshort(holding<0,0,thisclose);
sell(holding>0,0,thisclose);
end
但是14点55分就自动平仓了,难道只能用一分钟执行才行么?有没有办法?
[此贴子已经被作者于2013/12/30 17:35:17编辑过]
金字塔客服:
if (islastbar and dynainfo(207)>145900 and dynainfo(207)<145959) or (not(islastbar) and time=150000) then begin