Terry, Thanks. I think I can see how to combine your suggestion with the Relative Performance code to plot relative performance.
This leads to another question, however. I would also like to plot an average. I thought I could do that using the AddtoComposite function and I tried that route, but I need each previous year as a symbol to run the function against in the Scan mode. I can't think of how I would do that other than creating a series of arrays (an array of arrays??). If I could do that then I could create artificial symbols, I suppose, and run a Scan. Or, perhaps I could simply add them (e.g., Y2001 + Y2002 + Y2003 + ...) and bypass the AddtoComposite approach completely. At this point I get lost. I tried creating an array, but I don't understand the subject well enough to know how to proceed. If you have any suggestions to offer, please let me know. Thanks, Wayne --- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > You could modify that chart and plot multiple years like this or some > variation thereof: > > periods = 10; > barsPer = 252; > for (x = 0; x < periods; x++) > Plot(Ref(C,-x * barsPer),"Current data",x + 1); > > The above does not doing anything with the Relative part, but you can > get that from the existing code. > -- > Terry > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of wlandry01 > Sent: Friday, October 13, 2006 19:10 > To: [email protected] > Subject: [amibroker] Re: Overlay price chart of second symbol > > Tomasz, > > Can the Relative Performance Chart be used to plot multiple years for > a single stock on a single chart? > > Thanks, > > > Wayne > > > --- In [email protected], "Tomasz Janeczko" <groups@> wrote: > > > > Yes, the AFL is inside standard "Formulas\Price" folder > > (accessible from charts tree) > > http://www.amibroker.com/guide/h_dragdrop.html > > > > (if you don't have it, it means you did not run full setup) > > > > Best regards, > > Tomasz Janeczko > > amibroker.com > > ----- Original Message ----- > > From: "J. Biran" <jbiran@> > > To: <[email protected]> > > Sent: Friday, October 13, 2006 11:12 PM > > Subject: RE: [amibroker] Overlay price chart of second symbol > > > > > > > > > > Can you elaborate? Is this an AFL file somewhere (I can not find)? > > > > > > Help lists "Relative Performance Chart" but not how to get to it > > > > > > > > > > > > Joseph Biran > > > ____________________________________________ > > > > > > > > > -----Original Message----- > > > From: [email protected] On Behalf Of Tomasz Janeczko > > > Sent: Friday, October 13, 2006 1:35 PM > > > To: [email protected] > > > Subject: Re: [amibroker] Overlay price chart of second symbol > > > > > > Hello, > > > > > > Use built-in: > > > Charts->Price->Relative Performance > > > > > > Best regards, > > > Tomasz Janeczko > > > amibroker.com > > > ----- Original Message ----- > > > From: "i7505" <i7505@> > > > To: <[email protected]> > > > Sent: Friday, October 13, 2006 9:30 PM > > > Subject: [amibroker] Overlay price chart of second symbol > > > > > > > > >>I have looked through the docs and search the kb & groups and can > not > > >> seem to find the answer to this - how can I overlay the price > charts > > >> of two different symbols in the same chart window? I am coming from > > >> Ensign where this is very easy to do, but I can not find an > > > equivalent > > >> method in AB. For a simple example - to overlay a price chart of > the > > >> NASDAQ 100 and the S&P 100. > > >> > > >> TIA, Greg > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > 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 > 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/ <*> 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
