hh:=ref(hhv(h,openminutes(time)),1); ll:=ref(llv(l,openminutes(time)),1); bk1:=h>hh; sk1:=l<ll; if holding>0 and time>145900 then sell(1,0,market); if holding<0 and time>145900 then sellshort(1,0,market); if holding=0 and bk1 and time>090500 then buy(1,1,market); if holding=0 and sk1 and time>090500 then buyshort(1,1,market);