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
|