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 ----- From: Lester Vanhoff To: [email protected] 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 [email protected], "Edward Pottasch" <[EMAIL PROTECTED]> 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
