if h>ref(h,1) then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if l<ref(l,1) then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
if holding>0 and l<enterprice-30*mindiff then sell(1,0,market);
if holding<0 and h>enterprice+30*mindiff then sellshort(1,0,market);
交易模式设定为1秒固定轮询
if h>ref(h,1) then begin
buy(holding=0,1,market);即时的H