Request for Amibroker AFL Codes to Always keep visible close price chart on right center of it..!

pkgmtnl

Well-Known Member
#1
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.
 
#2
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();
 

pkgmtnl

Well-Known Member
#3
Thank you so much sir. Actually I had meant for the price of the last candle to always be on the middle of the right side.
 

Similar threads

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?