止损:
if asset<hhv(asset,enterbars+1)*0.09 then begin
sellshort(1,0,marketr);
sell(1,0,marketr);
end
止盈:
if holding>0 and c<=hhv(h,enterbars+1)*0.7 then sell(1,0,marketr);
if holding<0 and c>=llv(l,enterbars+1)*1.3 then sellshort(1,0,marketr);