按照下列写法,用在日线级别上,想每天最后1分钟平仓。 但是加载后一点反应都没。请来看看怎么回事。
input:tq(60,3,120,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
SC:=ref(c,1);
if abb then begin
if sc> enterprice and enterbars>0 and holding<0 then sellshort(1 ,holding,limitr,close);
if sc< enterprice and enterbars>0 and holding>0 then sell(1 ,holding,limitr,close);
end
金哲兄你好,那我用在日线上,该如何最后几秒平仓?
把time0直接改成54900
abb:=(54900-timetot0(dynainfo(207))<=tq) or not(islastbar);