if h>=1.01*o then buy(holding=0,1,market);
if enterprice<o-1 and enterbars>0 then sell(1,0,market);
if l<=0.99*o then buyshort(holding,1,market);
if enterprice>o+1 and enterbars>0 then sellshort(1,0,market);
if time0>=timetot0(closetime(0))-5*60 then begin
sell(1,0,market);
sellshort(1,0,market);
end