var: mytimewindow(false);
input: mystarttime(200), myendtime(0915);
input: mystop(0.007), myProfit(0.02);
mytimewindow = (time > mystarttime) and (time < myendtime);
if mytimewindow then begin
if closesession(0,1) < closesession(0,2) and c[1] < lowsession(0,1) and c > lowsession(0,1) then buy next bar at market;
if closesession(0,1) > closesession(0,2) and c[1] > highsession(0,1) and c < highsession(0,1) then sellshort next bar at market; end; setstopcontract; if mystop > 0 then setstoploss(mystop);
if myprofit >0 then setprofittarget(myprofit);