April 21, 2008
Big symbol text in the background
Recently I heard the suggestion to add a security symbol written in big letters in the chart background. Well, actually it is pretty simple to do using low-level gfx. Just add this code sniplet anywhere in your chart formula.
GfxSetOverlayMode(1);
GfxSelectFont("Tahoma", Status("pxheight")/2 );
GfxSetTextAlign( 6 );// center alignment
GfxSetTextColor( ColorRGB( 200, 200, 200 ) );
GfxSetBkMode(1); // transparent
GfxTextOut( Name(), Status("pxwidth")/2, Status("pxheight")/12 )
UPDATE: I have added transparent mode, so it works fine on non-white backgrounds too.
Filed by Tomasz Janeczko at 4:41 am under Indicators
Comments Off on Big symbol text in the background