PureBytes Links
Trading Reference Links
|
Michael,
Try this:
Result = Ref(HHV(H,100),-100);
This avoids absolute references and works for all bars giving you the
highest high of the 100 previous bars starting 100 bars ago. (thus in
your example, it's from 100-200).
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of Michael.S.G.
Sent: Saturday, August 12, 2006 21:07
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] highestsincebars
I'm tring to plot a line array using the highest high within a range of
bars.
I can locate the highest since a particular bar, But I don't want to
look beyond a certain bar.
eg
Total bars = 0-300.
I only want to find highest high from between bars 100-200.
Anyone know how to do this?
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
Yahoo! Groups Links
|