PE plot for Amibroker (AFL)
Copy & Paste Friendly
//-----------------------------------------
SetChartOptions(0,chartShowArrows|chartShowDates);
PE = IIf(EPS != 0, (Close / GetFnData("EPS")),0);
//Dividend and Yield
DIV = GetFnData("DividendPerShare");
DIVYield = (GetFnData("DividendPerShare") / C) * 100;
Plot(PE, "Close", ParamColor("Color", colorBlack ) );