MA10:=MA(C,10);
if C>MA10 AND TIME>=090000 AND TIME<=145500 then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if C<MA10 AND TIME>=090000 AND TIME<=145500 then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
HH:=HHV(H,enterbars+1);//买开仓位置到现在最高价
LL:=LLV(L,enterbars+1);//卖开仓位置到现在最低价
if TIME>=093000 and C>=LL+LL*9/1000 and TIME<=145500 and holding<0 then sellshort(1,0,market);
if TIME>=093000 and C<=HH-HH*7/1000 AND TIME<=145500 and holding>0 then sell(1,0,market);//最高阶回撤N止损
推荐使用走完k线下单模式