|
Hi Ron - I think maybe you have 3
options:
1. Simplest, doesn't require a title - Move
chart name from right to left side by including it in the 1st Plot
statement:
Plot( Ind1, "CHART NAME Ind
Name", colorRed, styleLine );
2. Quick fix - You can use the Plot function to add
text anywhere in the title, but AB will append a value to it:
Plot ( Ind1...
Plot ( Ind2...
Plot( Null,
" CHART
NAME", colorDefault, styleNoLine|styleNoLabel );
Come to think of it, it would be quite handy to
have something like StyleNoTitleValue so AB won't append the value, then we
could just write
Plot( Null, " CHART NAME", colorDefault,
styleNoLine|styleNoLabel|styleNoTitleValue ); It is much easier than writing a huge title
- maybe I will suggest it! 8 - )
3. Construct a Title containing the names and
values from all Plot statements, along with whatever else you want to add. It is
really just a matter of
1) combining text and numerical values in
the order you want
2) using spaces and newlines to position
them where you want, and
3) using EncodeColor() to color each part to
match your plots.
I find it helpful to line up the parts of the title
in my AFL. Here is an example using built-in price arrays:
YestOpen = ref( Open, -1 );
YestClose = ref( Close, -1 );
Plot( Open, "Open", colorRed );
Plot Close, "Close", colorGreen );
Title = EncodeColor( colorRed ) +
"Open " + YestOpen +
" " + Open
+ EncodeColor(
colorGreen ) + " Close " + YestClose + " " +
Close
+ EncodeColor(
colorBlack ) +
"
CHART NAME"
+ "\n" +
EncodeColor( colorWhite ) + "Here is example of starting new
line"
+ "\n" + NumToStr(
Close, 1.1 ) "plus example of controlling decimal places";
Well, I haven't tested it so I hope it
works! 8 - ) Good
luck!
Steve
|
- Re: [amibroker] Custom TiTle Help Steve Dugas
- Re: [amibroker] Custom TiTle Help mrdavis9
- [amibroker] IB Help Joe Landry
- [amibroker] Re: IB Help Phsst
- Re: [amibroker] Re: IB Help Tomasz Janeczko
- Re: [amibroker] Re: IB Help Joe Landry
- Re: [amibroker] Custom TiTle Help Steve Dugas
