//5分钟周期 股指
if time>=092000 then begin
if all(c>o,15) then buy(1,1,market);//连续15周期阳线开多
if openprofit<-5000 and holding>0 then sell(1,0,market);//亏损5000止损平多
if openprofit>500 and holding>0 then buy(1,1,market);//开多后浮盈大于500加仓
end
if time>=150500 then sell(1,0,market);//收盘前平仓
仅供参考