Library/Best Practices/Tips

The following code is used to display the symbol, name and industry or vehicle (ETF etc.) in the background of a price chart

GfxSetOverlayMode(1);
GfxSelectFont(“Tahoma”, 30, Status(“pxheight”)/2);
GfxSetTextAlign( 6 );// center alignment
GfxSetTextColor( ColorRGB( 200, 200, 200 ) );
GfxSetBkMode(1); // transparent
GfxTextOut( Name(), Status(“pxwidth”)/2, Status(“pxheight”)/0 ); // name means ticker
GfxTextOut( FullName(), Status(“pxwidth”)/2, Status(“pxheight”)/10 );
GfxTextOut( IndustryID(1), Status(“pxwidth”)/2, Status(“pxheight”)/5 );

 

This code is used to display the formula in the title so you always know which formula you are working on so you don’t accidentally erase your precious holy grail code

Title = “{{NAME}} {{DATE}} {{INTERVAL}} ” + _DEFAULT_NAME() + ” Chart values :
{{VALUES}}”;

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s