March 24, 2015

Magnified close AFL

Many people have asked how to display the current price in large font as in the following chart.

Code is pretty simple - use low level graphics functions. The AFL is:

_SECTION_BEGIN("Magnified close");
//Copyright: Kamalesh Langote Email:
Param_Color=ParamColor( "Color", colorCycle );
toggle_mclose = ParamToggle("Magnified Close","Show|Hide",1);
if( toggle_mclose )  {
x = Status( "pxchartwidth");
y = Status( "pxchartheight" ) ;
GfxSelectFont( "arial",0.1*y,800);
} else {}

No comments:

Post a Comment