finallynitin

Quarterly Earnings

finallynitin Updated   
This script displays quarterly earnings per share (EPS) and sales data, and their year-on-year percentage change.

The script builds upon the Volume Price and Fundamentals script by Mohit_Kakkar08 and improves upon the array functions to keep the code light-weight & the output as accurate as possible. This script uses diluted EPS data for calculating the quarterly earnings. New quarters are auto-generated by the script as the earnings data gets updated in Tradingview every quarter.


Features:

⦿ View quarterly earnings per share (EPS) and sales data.

⦿ The percentage change is a YoY (year on year) comparison of the current quarter to the same quarter of the previous year.

⦿ Option to change the data from Quarterly (FQ) to Yearly (FY).

⦿ Long mode: Option to increase the number of previous quarters displayed in the table (default is the past 4 quarters) to any number.

⦿ Location & size of the table can be changed.

⦿ Option for a 1-click dark mode

⦿ Option for a 'Mini mode' where the values are replaced by traffic lights for a quick visual:
🟢 or 🔵 YoY increase in earnings/sales
🔴 or 🟣 YoY decrease in earnings/sales
🟡 or 🟠 YoY earnings/sales unchanged
⚪️ No data available

⦿ The top-left cell has the option to display either the free float (FF) or the marketcap (Mcap) of the stock.

Please note that sometimes the Tradingview data reflected in the script output might differ a bit from MarketSmith. Also make sure you are viewing the 'consolidated' data there.

This script was developed as a collaboration between me & @EquityCraze.
Release Notes:
This update fixes an error in the % change calculation in the FY mode.
Release Notes:
This update improves the % change calculation when the previous year quarter had 0 EPS.
Release Notes:
Updated to resolve an error in the calculation of some % changes due to handling of 0 EPS.

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?