OPEN-SOURCE SCRIPT

Earnings X-Ray

Updated
The script presents earnings and revenues in a tabular format. Particularly, it calculates percentage changes.

Earnings data can be found in TradingView Financials. However, percentage changes are not provided. Can TradingView implement this in the future?

Displaying earnings table on the chart has its benefits. No additional clicks required to access the data. This significantly streamlines the stock scanning process.

It is important to quickly evaluate a company's earnings when scanning for stocks. The script provides this capability.

Similar scripts have been created previously. This script corrects calculations and improves presentation with the concise code.

Data access:
Earnings = request.earnings(syminfo.tickerid, earnings.actual)
FutureEarnings = earnings.future_eps
FutureRevenue = earnings.future_revenue

Can more than one quarter of future earnings estimates become available in Pine Script in the future?

The script was validated against MarketSurge.

Features:
  • Quarterly or Yearly data
  • Configurable number of fiscal periods
  • Configurable location on the chart
  • Optional Dark mode

Release Notes
Bug fixes. Dark mode is now automatic. Optional color the for EPS column.
Earnings

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer