variable:n=1;
if 開倉信號 and holding=0 then begein
下單語句;
n:=n+1;
end
nn:=barslast(n=0);
aa:ref(asset,nn);