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

RE: omega-digest Digest V101 #109


  • To: <omega-list@xxxxxxxxxx>
  • Subject: RE: omega-digest Digest V101 #109
  • From: "Todd Hanson" <todd@xxxxxxxxxxxx>
  • Date: Tue, 3 Apr 2001 09:58:00 -0700
  • In-reply-to: <200104030654.XAA28838@xxxxxxxxxxxxxx>

PureBytes Links

Trading Reference Links

Hi there. Could anyone help me out on the .ELA code for daily highs and
lows. I have been using the code below against a 1 minute chart but it does
not seem to be helping. Thank you in advance.

inputs: HiPeriod( 1 ) ;
variables: DC( DataCompression ), HighestHi( 0 ) ;

if ( HiPeriod = 2 and DC <= 2 and Date <> Date[1] )
	or ( HiPeriod = 3 and DC <= 3 and DayOfWeek( Date) > DayOfWeek( Date[1] ) )
	or ( HiPeriod = 4 and DC <= 4 and Month( Date ) <> Month( Date[1] ) )
	or ( HiPeriod = 5 and Year( Date ) <> Year( Date[1] ) )
	or ( HiPeriod <= 1 or HiPeriod > 5  and CurrentBar = 1 )
then
	HighestHi = High ;

if High > HighestHi then
	begin
	Buy next bar on Open ;
	HighestHi = High ;
	end ;


-----Original Message-----
From: omega-digest-request@xxxxxxxxxx
[mailto:omega-digest-request@xxxxxxxxxx]
Sent: Monday, April 02, 2001 11:55 PM
To: omega-digest@xxxxxxxxxx
Subject: omega-digest Digest V101 #109