PureBytes Links
Trading Reference Links
|
Thanks Graham, that did the trick.
For some reason I was thinking that the Title was completely
controlled by it's own section and that the Plot section for the
Keltner Bands had nothing to do with the title. But now see how it
all works.
Dave
--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> use \n not /n
> Plot( KTop, "\nKBTop" + _PARAM_VALUES(), Color, Style );
>
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
>
>
> On 2/6/06, marketmonk777 <dlittner@xxx> wrote:
> > Hi folks,
> >
> > I have a simple pane with Candlesticks and the Keltner Bands. What I
> > would like to do (with a lot of my sheets) is to modify the title such
> > that each indicator is on it's own line.
> >
> > For Example this is what the Title currently reads:
> > HET - Daily 2/3/2006 Open xx*, Hi xx, Lo xx, Close xx (-1.1%)
> > KBTop(Close,15,2)=75.33, KBBot(Close,15.2)=70.10 all on one line.
> >
> > *I was too lazy to type in actual prices and so just typed in xx.
> >
> > What I would like to have done is:
> > HET - Daily 2/3/2006 Open xx*, Hi xx, Lo xx, Close xx (-1.1%)
> > KBTop(Close,15,2)=75.33
> > KBBot(Close,15.2)=70.10
> > in this example, it would take 3 lines.
> >
> > I am scratching my head because I don't see anywhere in the code why
> > the title even would list the KBs.
> >
> > Here is the code:
> >
> > _SECTION_BEGIN("Price");
> > SetChartOptions(0,chartShowArrows|chartShowDates);
> > _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g,
> > Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC(
> > C, 1 ) ) ));
> > Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
> > ParamStyle("Style") | GetPriceStyle() );
> > _SECTION_END();
> >
> > _SECTION_BEGIN("Keltner Bands");
> > P = ParamField("Price field",-1);
> > Periods = Param("Periods", 15, 2, 100, 1 );
> > Width = Param("Width", 2, 0, 10, 0.05 );
> > Color = ParamColor("Color", colorCycle );
> > Style = ParamStyle("Style");
> >
> > CenterLine = MA( P, Periods );
> > KTop = CenterLine + Width * ATR( Periods );
> > KBot = CenterLine - Width * ATR( Periods );
> >
> > Plot( KTop, "KBTop" + _PARAM_VALUES(), Color, Style );
> > Plot( KBot, "KBBot" + _PARAM_VALUES(), Color, Style );
> > _SECTION_END();
> >
> > I have read that I need to use the following code to have items show
> > up on their own line [ + "\n" + ] minus the brackets ofcourse.
> >
> > What I can't see is why the KB band data even shows up in the title.
> >
> > Please enlighten me.
> >
> > Dave
> >
> >
> >
> >
> >
> >
> >
> > 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/
|