finallynitin

Quarterly Earnings

finallynitin Uppdaterad   
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.
Versionsinformation:
This update fixes an error in the % change calculation in the FY mode.
Versionsinformation:
This update improves the % change calculation when the previous year quarter had 0 EPS.
Versionsinformation:
Updated to resolve an error in the calculation of some % changes due to handling of 0 EPS.

Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?