PureBytes Links
Trading Reference Links
|
The Highest( array ) function returns a VALUE of highest value in the array.
If you want to detect THE DAY when highest value was reached just use the followin formula
highestday = close == highest( close );
Please note that this one will give "1" (or true) for EVERY NEW high. For single signal use:
highestalltime = close == lastvalue( highest( close ) );
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
----- Original Message -----
From: David Holzgrefe
To: amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, February 28, 2001 2:44 PM
Subject: [amibroker] afl formula
Hi all i was trying to get a formula that would signal a stock trading atits all time hi ..
highest(close)
but i seem to get a signal for every day
if i define the range to 0 periods i get todays highest
if i define the range to 60 periods then i get a buy signal for 60 periods ?
Calculates the highest value in the ARRAY since the first day loaded in the chart
hmm what am i doing wrong ?
HIGHEST SYNTAX highest( ARRAY )
RETURNS NUMBER
FUNCTION Calculates the highest value in the ARRAY since the firstday loaded in the chart.
EXAMPLE The formula highest( rsi(14) ) returns the highest RelativeStrength Index value; highest ( close ) returns the highest closing price.
------=_NextPart_001_0054_01C0A1CA.22748060
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Blank</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><BASE
href="file://C:\Program Files\Common Files\Microsoft Shared\Stationery\">
<STYLE>BODY {
MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica
}
P.msoNormal {
MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>
<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY bgColor=#00ffff background=cid:005201c0a1c1$c09f4f80$0100007f@x...>
<DIV><FONT face=Tahoma>Hi David and all,</FONT></DIV>
<DIV><FONT face=Tahoma></FONT> </DIV>
<DIV><FONT face=Tahoma>The Highest( array ) function returns a VALUE of highest
value in the array.</FONT></DIV>
<DIV><FONT face=Tahoma> If you want to detect THE DAY when highest value
was reached just use the followin formula</FONT></DIV>
<DIV><FONT face=Tahoma></FONT> </DIV>
<DIV><FONT face=Tahoma>highestday = close == highest( close );</FONT></DIV>
<DIV><FONT face=Tahoma></FONT> </DIV>
<DIV><FONT face=Tahoma>Please note that this one will give "1" (or
true) for EVERY NEW high. For single signal use:</FONT></DIV>
<DIV><FONT face=Tahoma></FONT> </DIV>
<DIV><FONT face=Tahoma>highestalltime = close == lastvalue( highest( close )
);</FONT></DIV>
<DIV><FONT face=Tahoma></FONT> </DIV>
<DIV>Best regards,<BR>Tomasz Janeczko<BR>===============<BR>AmiBroker - the
comprehensive share manager.<BR><A
href="http://www.amibroker.com">http://www.amibroker.com</A><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial ce">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial ce; font-color: black"><B>From:</B>
<A title=dtholz@xxxx href="mailto:dtholz@xxxx">David
Holzgrefe</A> </DIV>
<DIV style="FONT: 10pt arial ce"><B>To:</B> <A title=amibroker@xxxxxxxxxxxxx
href="mailto:amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx</A> </DIV>
<DIV style="FONT: 10pt arial ce"><B>Sent:</B> Wednesday, February 28, 2001
2:44 PM</DIV>
<DIV style="FONT: 10pt arial ce"><B>Subject:</B> [amibroker] afl formula</DIV>
<DIV><BR></DIV>
<DIV>Hi all i was trying to get a formula that would signal a stock trading at
its all time hi ..</DIV>
<DIV>highest(close)</DIV>
<DIV>but i seem to get a signal for every day </DIV>
<DIV>if i define the range to 0 periods i get todays highest</DIV>
<DIV>if i define the range to 60 periods then i get a buy signal for 60
periods ?</DIV>
<DIV> </DIV>
<DIV>Calculates the highest value in the ARRAY since the first day loadedin
the chart</DIV>
<DIV> </DIV>
<DIV>hmm what am i doing wrong ?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<P><STRONG>HIGHEST </STRONG>
<TABLE width="90%" bgColor=#c0c0c0 border=0>
<TBODY>
<TR>
<TD width="20%">SYNTAX </TD>
<TD width="80%">highest( ARRAY )</TD></TR>
<TR>
<TD>RETURNS</TD>
<TD>NUMBER</TD></TR>
<TR>
<TD vAlign=top>FUNCTION </TD>
<TD width="80%">Calculates the highest value in the ARRAY since the
first day loaded in the chart.</TD></TR>
<TR>
<TD vAlign=top>EXAMPLE</TD>
<TD width="80%">The formula highest( rsi(14) ) returns the highest
Relative Strength Index value; highest ( close ) returns the highest
closing price.</TD></TR></TBODY></TABLE></P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_001_0054_01C0A1CA.22748060--
Attachment:
Description: ""
|