Amibroker AFL for Magnified Last Trading Price . Sometimes you like to see the LTP a little bigger and at a different place on your chart.
This Amibroker AFL will magnify the LTP and place it on your chosen position through managing it in the Parameters options.
Read This Also: Top 10 Amibroker AFL For Trading
____________________________Copy The Code From Below__________________________
_SECTION_BEGIN("Magnified Close Price");
FS=Param("Font Size",30,30,100,1);
GfxSelectFont("Arial", FS, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorYellow) );
Hor=Param("Horizontal Position",150,50,800,50);
Ver=Param("Vertical Position",10,10,500,20);
GfxTextOut(" "+C,Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Arial", 12, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorYellow) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor+5, Ver+45 );
_SECTION_END();
_______________________________________________________________________________
This Amibroker AFL will magnify the LTP and place it on your chosen position through managing it in the Parameters options.
Read This Also: Top 10 Amibroker AFL For Trading
____________________________Copy The Code From Below__________________________
_SECTION_BEGIN("Magnified Close Price");
FS=Param("Font Size",30,30,100,1);
GfxSelectFont("Arial", FS, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorYellow) );
Hor=Param("Horizontal Position",150,50,800,50);
Ver=Param("Vertical Position",10,10,500,20);
GfxTextOut(" "+C,Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Arial", 12, 700, italic = False, underline = False, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorYellow) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor+5, Ver+45 );
_SECTION_END();
_______________________________________________________________________________
thanks sir
ReplyDeleteYou are welcome
DeleteHappy Trading !!
How to get color of price red,green depending on yesterday close?
ReplyDeleteHi Thambidurai,
DeleteWill try to modify as you have asked and if its done then I will upload that as well.
This comment has been removed by the author.
Delete