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

Re: "High Impact" EL Code


  • To: RealTraders Discussion Group <realtraders@xxxxxxxxxxxxxx>
  • Subject: Re: "High Impact" EL Code
  • From: "Glenn Pederson" <gpeder@xxxxxxxxx>
  • Date: Wed, 1 Apr 1998 11:53:23 -0800
  • In-reply-to: <354C733F.5B6422F5@xxxxxxxxxxxxxxxx>

PureBytes Links

Trading Reference Links

Hi Bob,

On  3 May 98 at 8:38, Bob Hunt wrote:

> Would anybody happen to have the Omega Easy Language code for the
> trading methods discussed in the book "High Impact Day Trading" and
> would be willing to share it?

Try this...

*************************
{
Buy/Sell on 5th consecutive up/dn-close of 2T
Use 15 minute Bond bars.  Exit MOC.
}

Vars: BarsUp(0), BarsDn(0), Step(0), StartDate(0), EndDate(0);

{At close of the first bar of the day only}
If D>D[1] Then BarsUp=0;
     BarsDn=0;

{Count the qualifying bars}
If C >=C[1] + 2 Points Then BarsUp = BarsUp+1
Else  BarsUp=0;
If C <=C[1] - 2 Points Then BarsDn = BarsDn+1
Else BarsDn=0;

If  t<1440 Then Begin   
          If MarketPosition<>1 And BarsUp = 5 Then Buy At Market; If
          MarketPosition<>-1 And BarsDn = 5 Then Sell At Market;
End;

****************************************


Glenn
gpeder@xxxxxxxxx