Dear AFL coders,
If anyone has codes which can help to keep the visible close price of the chart Always on the right centre of it.
Request to plz share.
_SECTION_BEGIN("Magnified Market Price");
FS=25;//Param("Font Size",25,11,100,1);
GfxSelectFont("Times New Roman", FS, 700, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorGold) );
Hor=900;//Param("Horizontal Position",900,1,1200,1);
Ver=-1;//Param("Vertical Position",-1,1,830,1);
GfxTextOut(""+C, Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Times New Roman", 11, 700, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorBlack) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor , Ver+45 );
_SECTION_END();