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

Re: [amibroker] Re: legend in chart



PureBytes Links

Trading Reference Links

thanks.
 
Yes I am aware of what you show but I would like to display the "up arrow" as a real PlotShape and not the text. So that you can see in an instant what the symbols is used for. Like you say one needs to use PlotShapes() for it (or that is the only way I can think of). I tried for instance:
 
Title=Name()+ ", O: " + "\n" + "\n" + "\n" + PlotShapes(shapeUpArrow,colorWhite,Layer = 0,O[10], offset = 0) + "\n";
but I can't get it to work,
 
rgds, Ed
 
 
----- Original Message -----
Sent: Friday, March 09, 2007 11:14 PM
Subject: [amibroker] Re: legend in chart

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

__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___