[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EL Help.



PureBytes Links

Trading Reference Links

At 9:34 AM -0500 3/15/00, RICLESB@xxxxxxx wrote:

>I dont know if it is appropriate to ask, but i need some help. At the
>moment I'm easy language illiterate but am starting to learn. i want
>to program and test a system that will take the range from 7 to 8:30
>am and either buy or sell a breakout of the range with a stop at the
>other end of the range from the breakout. and close the position at
>4pm. im sure some of u could do this with your eyes shut. any help
>would be greatly appreciated. if a system is more difficult maybe
>just an indicator with an alert. thanks in advance


Something like the following should work. (Not tested)

Bob Fulks

-----

Vars: HHigh(0), LLow(0);

{Initialize at 7 am}
if Time <= 0700 then begin
   HHigh = High;
   LLow  = Low;
end;

{Find range from 7 am to 8:30 am}
if Time > 0700 and Time <= 0830 then begin
   HHigh = iff(High > HHigh, High, HHigh);
   LLow  = iff(Low  < LLow,  Low,  LLow);
end;

{Enter on breakout from range with stop at other end of range}
if Time >= 0830 then begin
   Buy next bar at HHigh + 1 point stop;
   Sell next bar at LLow - 1 point stop;
end;

{Exit at the Close of the 4 pm bar}
if Time >= 1600 then begin
   ExitLong  at Close;
   ExitShort at Close;
end;