A1:=REF(H,1);
A2:=REF(L,1);
A1:=REF(H,1);
A2:=REF(L,1);
if TIME<151300 and H<REF(H,1) and C<REF(C,1) and (timetot0(dynainfo(207))>=time0-1 or not(islastbar)) then buyshort(holding=0,1,market);
if TIME<151300 and L>REF(L,1) and C>REF(C,1) and (timetot0(dynainfo(207))>=time0-1 or not(islastbar)) then buy(holding=0,1,market);
if ref(L<REF(A2,enterbars),1) then sell(1,0,market);
if ref(H>REF(A1,enterbars),1) then sellshort(1,0,market);
if ref(C<HHV(H,enterbars+1)-20,1) then sell(1,0,market);
if ref(C>LLV(L,enterbars+1)+20,1) then sellshort(1,0,market);
if time>=151300 then begin
sell(1,0,market);
sellshort(1,0,market);
end
使用固定轮询模式,轮询间隔1秒
if ref(L<REF(A2,enterbars),1) and enterbars>0 then sell(1,0,market);
if ref(H>REF(A1,enterbars),1) and enterbars>0 then sellshort(1,0,market);
if ref(C<HHV(H,enterbars+1)-20,1) and enterbars>0 then sell(1,0,market);
if ref(C>LLV(L,enterbars+1)+20,1) and enterbars>0 then sellshort(1,0,market);