Add your descriptions to Title statement. Please take note how colour
escape sequences, "line break" code, quote marks and plus sign are used. Btw,
"legend" is used on maps in English for this.
\\c32 - change colour to red
\n - line break, shift
one row down
\n\n - line break, shift two rows down
You will find
colour codes and "Title" explained here:
http://www.amibroker.com/guide/h_indbuilder2.html
Here
is the code. If you want to include actual shapes in addition to text
descriptions, then honestly I don't know how to do it. This would require
including PlotShapes() function in Title statement with some quite unusual
"yposition" parameter.
Lester
/*** START ***/
Title =
"\\c25"+Name()+
"\\c11 "+Interval(2)+" "+Date()+
"\\c34
"+FullName()+
"\\c-1 O="+O+
" H="+H+
" L="+L+
"
C="+C+
"\n"+
"\\c34Up arrow: Buy\n"+
"\\c32Down arrow:
Sell";
Plot(C, "", colorDarkYellow,
styleCandle);
SetChartOptions(0,
chartShowDates);
/*** END ***/
--- In amibroker@xxxxxxxxxps.com,
"Edward Pottasch" <empottasch@...> wrote:
>
>
hi,
>
> does anyone know how one can place Plotshapes as a legend
in the chart. Hope this is the right word for it. In Dutch it is called
legenda meaning "an explanatory table or list of the symbols appearing on a
map or chart".
>
> I want to place various the plotshapes in the
top left corner with a short explanation like:
>
> "up arrow":
Buy
> "down arrow": Sell
> "up triangle": Cover
>
etc....
>
> where "up arrow" etc. are the PlotShapes
themselves,
>
> thanks, Ed