This should work:

hhvalue = valuewhen(barindex() == selectedvalue(barindex()) - 50, hhv(h, 50));

Bill



----- Original Message ----- 
From: "bernardedmond01" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 22, 2007 8:06 PM
Subject: [amibroker] Defining a period in the past


> How do I define a period in the past?
> 
> If I want to know the HHV(C, Period) where "Period" is between Ref(C,-
> 50) and Ref(C,-100), how do I define Period?
> 
> Thanks
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.14/727 - Release Date: 3/19/2007 
> 11:49 AM
> 
>

Reply via email to