上次開倉為當日第一次開倉
如何表達
variable:n=0;
if 開倉條件 and 持倉判斷 then begin
下單語句;
n:=n+1;
end
nn:=barslast(n=1 and ref(n=0,1));
當enterbars=nn時,就是上一次等于第一次