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" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > 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" <[EMAIL PROTECTED]> > > 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/
