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

[amibroker] gfx text help needed



PureBytes Links

Trading Reference Links

i am trying to plot some trade details with gfx hoping i can position 
the text better. but it seems to all be in 1 line.
for eg. i like to print this info like

USD.CAD-IDEALPRO
Tradeid=23
Tradestrategy=Dunno
TradeComments=i dont know why i entered the trade

however it prints it all in 1 line. i would appreciate some help here.
see how it shows
http://screencast.com/t/EjAGMldt


// code below.

Miny= Status("axisminy"); 
Maxy = Status("axismaxy");

pxheight = Status("pxheight"); 
y = (GetCursorYPosition() - Miny)/(Maxy - Miny);
y = (1-y) * pxheight; y = y-20;

x= 10;
txt = Name() + "\n" + "Traadeid=23 " + "\n " + "Tradestrategy=Dunno"  
+ "\n  Trade commemnts = i dont know why i entered the trade " ;
GfxSelectPen( colorRed, 1 ); 
GfxSelectSolidBrush( colorCustom1 ); 
//GfxRectangle( 2, y-100, 270, y ) ;

GfxSelectFont("Tahoma",8, 700 ); 
GfxSetBkMode(1); 
GfxSetTextColor(colorGreen); 
GfxTextOut(txt  , x, y) ;


_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %
g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( 
ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | 
ParamStyle("Style") | GetPriceStyle() ); 
range=MA(High-Low,9);
Plot(H-range ,"longStop",colorGreen);
Plot(L+range ,"shortStop",colorRed);

_SECTION_END();


------------------------------------

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/