if marketposition=0 and time>0845 and time<=1320 and condition8=False then begin
if condition1 then begin buy next bar at var0 limit;
and else
if condition3 and condition7 then begin sellshort next bar at var1 limit;
end else
if condition4 then begin sellshort next bar at var1 limit;
end;