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

Re: [amibroker] Plotting composite indicators



PureBytes Links

Trading Reference Links

Try this line:

Graph0=Cum(Foreign("~S " + Sector + " Adv","H")-Foreign("~S " + Sector + " 
Dec","L"));

Steve

----- Original Message ----- 
From: "Bill" <zim630@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, February 22, 2006 1:31 PM
Subject: [amibroker] Plotting composite indicators


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




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