45 Min BOS

Discussion in 'Strategy Development' started by winminn1, Jun 6, 2004.

  1. winminn1

    winminn1

    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.
     
  2. I put it in TS 8 and got short signals.

    Is this TS 2000i code?

    Sorry I can't help; fine on my end.
     
  3. winminn1

    winminn1

    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.