variable:n=0,m=0;
if 平空 条件 and holding<0 then begin
sellshort(1,0,market);
if time>010000 and time<=063000 then n:=n+1;
if time>130000 and time<=190000 then m:=m+1;
end
if 平多 条件 and holding>0 then begin
sell(1,0,market);
if time>010000 and time<=063000 then n:=n+1;
if time>130000 and time<=190000 then m:=m+1;
end
if time=closetime(0) then begin
n:=0;
m:=0;
end
n为夜盘交易次数,m为白天交易次数