dd = valuewhen( LLVbars( L,500 )==0, datenum() );
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm
On 07/10/06, laster <
[EMAIL PROTECTED]> wrote:
Hi,
I am trying to get the datenum or barindex of the last high and last low.
My attempts to this point are not fructiferous.
L1 = L < Ref(LLV (L, 500),-1 );
dd= ValueWhen ( L1,BarIndex () ) ;
Will provide a date but within the 500 period, or any other period.
What I really need is the date of bottom that followed the last peak.
Do you think that something like the following should work?
DLP = ValueWhen(H> Ref(HHV(H, 500),-1) ,BarIndex()) ;
L1 = L < Ref (LLV (L, DLP),- 1);
Thanks in advance,
Jerry
__._,_.___
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 other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
| Software support | Small business finance | Business finance online |
| Business finance training | Business finance course |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
