Hi Steve,
Try LLV(H-L, 2) if you wish to include today's range. If you want the
lowest range prior to today, try Ref(LLV(H-L, 2), -1)
Consider defining range as a variable and use is as you will.
Range = H-L;
With LLV(Range, 2) for the first example above; Ref(LLV(Range,2), -1) for
the second.
Advantage to the variable route is you can then use it throughout your code
in other contexts,
(e.g., if in your output for an exploration you want to see the value
-- AddColumn(MA(Range,5), "5 day Average Range", 2.2, colorwhite,
colorblue)
or if you are developing a Tony Crabel narrow range 4 (NR4) or NR7 AA to
find range contractions, it's easier to apply.
Hope this is what you wanted.
Peace and Justice --- Patrick
----- Original Message -----
Sent: Sunday, May 21, 2006 9:37 PM
Subject: [amibroker] Lowest Range in past
2 Days - Code Help?
How do I code the lowest range of the past two
days?
Range = H - L;
// Need formula for the lowest value of the
past two days for range array
Thanks, Steve
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
YAHOO! GROUPS LINKS
|