variable:n=1;
if 开仓信号 and holding=0 then begein
下单语句;
n:=n+1;
end
nn:=barslast(n=0);
aa:ref(asset,nn);