if hhv(h,enterbars+1)>enterprice and c<=enterprice then sell(1,0,limitr,enterprice),ignorecheck;
if llv(l,enterbars+1)<enterprice and c>=enterprice then sellshort(1,0,limitr,enterprice),ignorecheck;
if c<enterprice-10 then sell(1,0,market);
if c>enterprice+10 then sellshort(1,0,market);