PureBytes Links
Trading Reference Links
|
Thanks Stephane,
I might try that next. In the meantime, I've fiddled around with
some of the other suggestions and come up with a slight variation
which seems to work well - code below.
This is the best solution so far, but it would still be nice
(Tomasz...) if we were able to choose the date for the first visible
bar on the left side of the chart...
Thanks all,
Alex.
-----
_SECTION_BEGIN("Relative Performance");
TickerList = ParamStr
("Tickers", "^AXJO,^AXDJ,^AXEJ,^AXFJ,^AXHJ,^AXIJ,^AXMJ,^AXNJ,^AXPJ,^A
XSJ,^AXTJ,^AXUJ,^AXXJ");
fvb = SelectedValue(C);
Plot((100 * ( C - fvb ) / fvb), Name(), colorBlack, styleThick=4 );
for( i = 0; ( symbol = StrExtract( TickerList, i ) ) !=""; i++ )
{
fc = Foreign( symbol, "C" );
fcb = SelectedValue(Foreign( symbol, "C" ));
if( ! IsNull( fc[ 0 ] ) )
{
Plot( 100 * ( fc - fcb )/ fcb, symbol, colorBrown + ( (2*i) % 15 ),
styleLine);
}
}
Plot(0,"0",colorGrey50,1|styleNoLabel|styleNoTitle);
_N(Title = "{{NAME}} - ASD - Relative Performance [%]: {{VALUES}}");
_SECTION_END();
----------------
--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset"
<s.carrasset@xxxx> wrote:
> you can try
> barcount-selectedvalue(barindex());
> and adding setbarsrequired(10000,10000);at thye beginning of the
code
>
> stephane
>
> > Is there a way to set the start date for the "Relative
Performance"
> > Indicator? As it is, it simply resets all securities to "0" at
the
> > far left-hand side of the screen and allows the relative
performance
> > to unfold across the screen - but there doesn't appear t obe an
easy
> > way to elect which date is the first visible date on the screen
(&
> > thus the first date of the "Relative Performance").
> >
> > Any ideas?
> >
> > Many thanks,
> > Alex.
> >
> > alexdouglas@xxxx
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/
|