abb:=(time0-timetot0(dynainfo(207))<=5) 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);
不是的
not(islastbar)是保留歷史信號用的,
(time0-timetot0(dynainfo(207))<=5)是判斷當前k離走完k線是否<=5秒