if holding>0 and c<=enterprice*0.98 then sell(1,0,market);
if holding<0 and c>=enterprice*1.02 then sellshort(1,0,market);
if holding>0 and hhv(h,enterbars+1)>=enterprice*1.03 and c<enterprice then sell(1,0,market);
if holding<0 and llv(l,enterbars+1)<=enterprice*0.97 and c>enterprice then sellshort(1,0,market);