if h>ref(h,1) then buy(holding=0,1,market);
if l<ref(l,1) then buyshort(holding=0,1,market);
立刻下单:使用固定轮询模式,轮询间隔设置为1秒
if h>ref(h,1) then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if l<rf(l,1) then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
图表交易设置为固定时间间隔轮询模式,轮询间隔为1秒