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

Re: [amibroker] all time high



PureBytes Links

Trading Reference Links


Hello,
 
You can use HighestHigh() and datenum() functions 
to achieve this:
 
HighestSince( datenum() == 990502 , high ); // get 
the highest high from May 2nd, 1999 
 
Best regards,Tomasz Janeczko===============AmiBroker - the 
comprehensive share manager.<A 
href="">http://www.amibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
David 
Holzgrefe 
To: <A title=amibroker@xxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Friday, June 15, 2001 7:39 
AM
Subject: [amibroker] all time 
high

Hi all 
 
I was trying to find a way to caculate the all 
time highest from a date eg
 
12/01/00 on this date which stock where trading 
at there all time high ?
12/06/99 on this date which stock where trading 
at there all time high ?
 
have tried TJ's all time high formula but i can't 
get it to specify a date 
 
change the date in the range field only shows the 
at of the accourance 
what im after is which stock at this date where 
on a all time high ?
 
 
Thanks David 
 
 
 
/*  all-time highest
 
Use the following formula to find the all-time 
highest and display its value and date:***/
 
alltimehigh = LastValue( Highest( high) 
);alltimehighbar = ValueWhen( high == alltimehigh, Cum(1) );
 
alltimeyear = ValueWhen( high == alltimehigh, 
Year() );alltimemonth = ValueWhen( high == alltimehigh, Month() 
);alltimeday = ValueWhen( high == alltimehigh,  Day() );
 
"All time highest was " + WriteVal( alltimehigh 
);"on the " + WriteVal( alltimeyear, 1 ) + "." + WriteVal( alltimemonth, 1 
) + "." + WriteVal( alltimeday, 1 );
 
/* Draw also a vuy arrow on highest day */buy 
= high == alltimehigh and Volume > 1000 AND strlen( name() ) == 3;;sell 
= 0;Your 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.