variable:n=0;
variable:m=0;
if holding>0 and 平多条件 then begin
sell..........;
if numprofit(1)>0 then n:=n+1;
if numprofit(1)<0 then m:=m+1;
end
if holding<0 and 平空条件 then begin
sellshort........;
if numprofit(1)>0 then n:=n+1;
if numprofit(1)<0 then m:=m+1;
end
n是盈利次数,m是开仓次数