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();
