Hi Keith,

You can follow Dave's suggestion (include the indicator name in the 
_SECTION_BEBIN() function, or write your own custom Title -- see the help 
file for the command or look at some sample code.  A custom title line 
allows for a lot more idiosyncratic style, to include other information you 
might want to see quickly -- e.g., on a price chart, you can display the % 
and net change from the prior close, the ADX(14), a % of average volume, a 
moving average value even tho not plotted -- let you imagination go wild. 
You can also custom color the different entries with encodecolor(), force 
carriage returns with \n, arrange spacing to your style, and more.

Below is a sample (sorry for the formating, but I'm too busy to condense it 
just now -- it will display as 3l lines at the top of your price chart if 
you add it at the end or comment out the default title line) and do not have 
Title wrap inactive in the chart parameters:

Enjoy.

Peace and Justice   ---   Patrick

//  -------------------  Start of Sample 
tle   -------------------------------------------------------

net_chg = NumToStr(C - Ref(C,-1), 1.3);

dyn_col = IIf(C > Ref(C,-1), colorGreen, IIf(C < Ref(C,-1), colorDarkRed, 
colorBrown));

Title=

EncodeColor(colorWhite)

+ " My Custom Indicator "

+ EncodeColor(colorBlue)

+ Date() + EncodeColor(colorYellow) + " "

+ Name()

+ " [ "+ IndustryID(1) +" ] "

+ EncodeColor(colorBlue) + " Prior Close= " + WriteVal(Ref(C,-1),2.2)

+ " Open = " + WriteVal(O,2.2)

+ " High = " +WriteVal(H,2.2)

+ " Low = " +WriteVal(L,2.2)

+ " Close= " + WriteVal(C,2.2)

+ "\n " +EncodeColor(colorLightYellow) + FullName()

+ EncodeColor(colorDarkRed)+" Volume = " + WriteVal(V,8.0)

+ EncodeColor(colorDarkGreen) + " Avg Vol = " 
+WriteVal(Ref(MA(V,21),-1),8.0)

+ " % of Avg Vol = " + WriteVal( 100 * ( V /Ref(MA(V,21),-1)),2.1)

+ EncodeColor(colorBlack) + " ADX (14) = " + WriteVal(ADX(), 2.1 ) + 
WriteIf(PDI(14)>MDI(14)," U ", " D ")

+ EncodeColor(colorWhite) + " RSI (13) = " + WriteVal(RSI(13) , 2.2 ) + " "

+ " RSI (2) = " + WriteVal(RSI(2) , 2.2 ) + " "

+ "\n" +EncodeColor(colorBlue) + " Range = " + WriteVal(High-Low,2.2)

+ EncodeColor(SelectedValue(dyn_col)) + " Net Change = " + net_chg

// + " Today's Net Change = " + WriteVal(Close-Ref(Close,-1),2.2)

+" Today's % Change = " +WriteVal(100*( (C-Ref(C,-1) )/ Ref(C,-1)), 3.2)

+ EncodeColor(colorBlue) +" Prev ATR (" + WriteVal(PerATR,2.0) + " ) = " + 
WriteVal(Ref(ATR(perATR),-1),2.2)

+ EncodeColor( Avg_Color ) + " " + ANAME + " (" + WriteVal( Periods, 2.0) + 
" )"

;

//  -------------  End of Sample 
Title -----------------------------------------------

----- Original Message ----- 
From: "Keith Osborne" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, June 12, 2006 5:31 PM
Subject: [amibroker] Indicator name in chart title.


Hi, is there anyway to include the name of my indicator into the chart
title?

TIA.....Keith



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 --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/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:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to