45 Min BOS

Sombody help me!

input:CountTime(930),EndTime(1615);
var: dayhi(0),daylo(0);

if t=counttime then begin
dayhi=highd(0);
daylo=lowd(1);
end;

if t>=counttime and t<=endtime then begin
buy next bar dayhi + .25 stop;
sellshort next bar daylo - .25 stop;
setexitonclose;
end;

Something wrong in this code. It doesn't trigger sell short trade. Thanks.
 
I got this code from somewhere. I'm trying to do the 45 min break out system. Buy the 45 min high +.25 for ES. Sell 45 min low -.25 . Thanks.
 
Back
Top