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
|