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

[amibroker] Re: Plotting composite indicators



PureBytes Links

Trading Reference Links

Guys
Thank you very much for your time. I have to be out of town for a 
few days so I won't have time to play with this till next week.  
When I have a resolution I will post it. 
Thanks
Bill


--- In amibroker@xxxxxxxxxxxxxxx, "Lesmond V" <ebsn247lsm@xxx> wrote:
>
> Look at functions SetForeign() and PlotForeign(). My code posted 
here should give you an idea how Foreign functions work in plots and 
Title:
> 
> http://finance.groups.yahoo.com/group/amibroker/message/94105
> 
> Also, Graph=0 is an obsolete variable, try to use Plot() 
statements instead, something like:
> 
> cml = Cum(Foreign("~S MG130 Adv","H")-Foreign("~S MG130 Dec","L"));
> Plot(cml, "name", colorRed, styleLine);
> 
> http://www.amibroker.com/guide/h_indbuilder2.html
> 
> http://www.amibroker.com/guide/afl/afl_view.php?id=114
> 
> Lesmond
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Bill" <zim630@> wrote:
> >
> > 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/