This works. Graham, thanks for your response. --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > > instead of HHV use Highest > > -- > Cheers > Graham > AB-Write >< Professional AFL Writing Service > Yes, I write AFL code to your requirements > http://www.aflwriting.com > > > On 31/01/07, directaim <[EMAIL PROTECTED]> wrote: > > 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 ) ); > > > > > > > > > > Please note that this group is for discussion between users only. > > > > To get support from AmiBroker please send an e-mail directly to > > SUPPORT {at} amibroker.com > > > > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: > > http://www.amibroker.com/devlog/ > > > > For other support material please check also: > > http://www.amibroker.com/support.html > > > > Yahoo! Groups Links > > > > > > > > >
