if cross(h,d1) then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if cross(d2,l) then begin
sell(1,0,market);
buyshort(holding=0,1,market);
系统设置为1秒轮询