只要在原帖回復就可以了,沒必要重復發.
全局變量的使用
variable:n=0;//n用來記錄次數
if 下單條件 and 持倉判斷 and n<4 then begin
下單語句;
n:=n+1;
end//記錄下單次數,每下單一次n+1,直到滿4此
if time>=收盤時間 then n:=0;//當收盤后,次數重置為0,以免影響第二天的交易