PureBytes Links
Trading Reference Links
|
Hello Michael,
You could do this through the code below:
Startbar = 100; Lastbar = 200;
Highestvalue_inRange = ValueWhen(BarIndex()>Startbar AND
BarIndex()<=Lastbar,HHV(H,BarIndex()-Startbar));
Plot(Highestvalue_inRange,"Highestvalue_inRange",7,1);
Title = "BarIndex = " + BarIndex();
Best Regards
Thomas
<http://www.tradingbasis.com/> www.tradingbasis.com
_____
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Michael.S.G.
Sent: Sunday, August 13, 2006 5:07 AM
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?
|