if time = 1300 then buy next bar at market; if time = 2200 and marketposition>0 then sell next bar at market;