abb:=(time0-timetot0(dynainfo(207))<=5) or not(islastbar);
if abb then begin
平多:sell(tmp<0 and c<stopprice and holding>0,ss,marketr);
平空:sellshort(tmp>0 and c>stopprice and holding<0,ss,marketr);
开多:buy(BUY1 and holding<=0,ss,marketr);
开空:buyshort(SELL1 and holding>=0,ss,marketr);
end