I am trying to recreate the PERatio formula the way it is implemented by QuantConnect in fine.ValuationRatios.PERatio. I tried using the formula fine.Price / fine.EarningReports.BasicEPS.OneYear,but my I am getting different a different result. What values should I use to best match fine.ValuationRatios.PERatio?(I am recreating it so I can use negative PE Ratios)

Author