ma8:=ma(c,8);
ma80:=ma(c,80);
if cross(ma8,ma80) then begin
buy(holding=0,1,market);
end
if cross(ma80,ma8) then begin
buyshort(holding=0,1,market);
end
if holding>0 and h>enterprice+10 then 多止盈:sell(1,0,market);
if holding>0 and l<enterprice-30 then 多止损:sell(1,0,market);
if holding<0 and h>enterprice+30 then 空止损:sellshort(1,0,market);
if holding<0 and l<enterprice-10 then 空止盈:sellshort(1,0,market);