variable:n=0;
if holding=0 and 開(kāi)倉(cāng)條件 and n<一天開(kāi)多的次數(shù) then begin
buy(1,1,market);
n:=n+1;
end