if holding>0 and l<enterprice-20 then sell(1,0,market);
if holding<0 and h>enterprice+20 then sellshort(1,0,maarket);
if holding>0 and h>enterprice*1.01 then sell(1,0,market);
if holding<0 and l<enterprice*0.99 then sellshort(1,0,market);
if enterbars>n and openprofit<0 and holding>0 then sell(1,0,market);
if enterbars>n and openprofit<0 and holding<0 then sellshort(1,0,market);