//平空
IF (平空条件=1) THEN BEGIN
平空:sellshort(1,ss,limitr,close+10);
END
//开多
if (开多条件=1) then
begin
buy(1,SS,limitr,close+10);
图表自动,如何写成提前3秒报单?
ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
if abb then begin
if holding>0 and ma5<ma10 then sell(1,1,thisclose);
if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
if holding=0 and ma5>ma10 then buy(1,1,thisclose);
if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);
end
按照这样的格式写
TQ就是提前的时间,你定义个3就行