n1:=todaybar;
dm:=4-INTPART(LOG(C));
结算价:ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm),COLORYELLOW;
最新价:close,colorred;
if close>ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm) and (TIME>=090000 and time <=145500) THEN
BEGIN
TSELLSHORT(HOLDING<0,1,lmt,close,0);
TBUY(1,1,lmt,close,0);
end
if close<ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm) and (TIME>=090000 and time <=145500) then
BEGIN
tsell(HOLDING>0,1,lmt,close,0);
TBUYSHORT(1 ,1,close,0);
end