PureBytes Links
Trading Reference Links
|
Hi Crash,
This will do what you want - see attached graphic. The secret is to use the
LineArray function. There is probably a more elegant way but at least this
works!
_SECTION_BEGIN("HHV Line from Selected Bar");
SetBarsRequired(10000,10000);
LineFwd = LastValue((BarCount-1)) - SelectedValue(BarIndex());
yH=LastValue(HHV(H,LineFwd));
Plot(C,"",-1,64);
Line = LineArray( BarCount-(LineFwd+1), yh, BarCount-1, yh, 1,True );
Plot(Line, "High Value ", colorRed,1 );
_SECTION_END();
Regards,
Gordon Sutherland
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of crashoz
Sent: Saturday, 5 April 2008 9:29 a.m.
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Creating a HHV Indicator
like this
http://s283.photobucket.com/albums/kk284/crashoz_photo/?action=view¤t=
HHVInd.png
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
------------------------------------
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Attachment:
HHV Line.png
Description: PNG image
|