[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Plotting composite indicators



PureBytes Links

Trading Reference Links

Hi
First allow me to say thanks once again to Steve D and Duke J to 
help out before, it was really appreciated.  Now on to plotting 
these indicators under the Sector Chart.  I am using the following 
in Indicator builder:
_SECTION_BEGIN("SectorAD");
//Advance Decline Line
Buy = 0; // required for scan
Industry = GetBaseIndex();
Sector = StrLeft( Industry, 4 ) + "0";
Title =Name()  + "--" + SectorID(1)  +"---"+ "A/D";
Graph0=Cum(Foreign("~S MG130 Adv","H")-Foreign("~S MG130 Dec","L"));
_SECTION_END();

This works fine for this Sector however if I change the MG130 to 
Sector so as to change each time I look at a new sector the 
indicator no longer plots a line and the SectorID(1) in the title 
always prints undefined.  Any ideas will be greatly appreciated!
Thanks in Advance
Bill






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/