[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: legend in chart



PureBytes Links

Trading Reference Links

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@xxxxxxxxxxxxxxx, "Edward Pottasch" <empottasch@xxx> 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




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/