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

[amibroker] Date of the Highest High



PureBytes Links

Trading Reference Links

In exploration
how do I find
the date of the highest high
for any paticular ticker?

My results are dates that are not the highest high
and sometimes several dates.

I have tried many methods
all with the same results,
such as:

//DateHiHi= Ref(DateNum(), -HHVBars(H, BarIndex()) );

//DateHiHi= Ref( DateNum(), -BarsSince(H == HHV(H, BarIndex()) )); 

//DateHiHi=  ValueWhen( H == HHV(H, BarIndex() ), DateNum() );

//DateHiHi = ValueWhen( HHVBars( H, 5000 )==0, DateNum() ); 

//ValuHiHi = ValueWhen(  H == HHV(H, BarIndex() ) , H);
//DateHiHi = LastValue(ValueWhen( H == ValuHiHi ,    DateNum(),1 ) );



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.15/659 - Release Date: 1/30/2007 9:31 AM