Quarterly Earnings - YOY ATH and QOQ HIGHHere is a comprehensive and professional description suitable for publishing your script on TradingView. It highlights the features, explains the logic (especially the new ATH color coding), and gives proper credit to the original author as per the code.
You can copy and paste this directly into the description field when publishing.
Title: Quarterly Earnings & Sales Monitor
Description:
Overview: This indicator brings essential fundamental data directly onto your chart, allowing you to track a company's financial health without leaving your trading screen. It displays a customizable table featuring Earnings Per Share (EPS) and Sales (Revenue) data, complete with Year-over-Year (YoY) growth percentages.
Designed for both fundamental investors and technical traders, this script helps visualize earnings momentum and growth trends instantly.
Key Features
Smart Highlighting (Trend Detection): The latest quarter's data is automatically color-coded to help you spot strength immediately:
Yellow: Indicates an All-Time High (ATH) in EPS or Sales for the loaded history.
Orange: Indicates the current quarter is higher than the previous quarter (Quarter-over-Quarter growth).
Standard Color: Indicates stable or lower performance compared to the previous quarter.
Flexible Viewing Modes:
Standard Mode: A detailed table showing raw numbers and percentage changes.
Mini Mode: A compact "traffic light" version that replaces numbers with colored dots (Green/Red/Orange) representing YoY growth, perfect for keeping your chart clean.
Fundamental Context:
Displays Free Float or Market Cap (customizable) in the top-left corner of the table, giving you context on the stock's liquidity and size.
Fully Customizable:
Dark Mode: One-click toggle to switch between Light and Dark themes.
Positioning: Place the table anywhere on the chart (Top/Bottom, Left/Right/Center).
Data Size: Adjust how many historical quarters you want to see.
How to Read the Table
Rows: Each row represents a fiscal quarter (or year, depending on settings).
EPS Column: Diluted Earnings Per Share.
Sales Column: Total Revenue.
%Chg / YoY: The percentage growth compared to the same period last year.
Settings
Period: Toggle between Quarterly (FQ) and Yearly (FY) data.
Long Mode: Increase the number of historical periods displayed.
Size: Adjust the text size of the table to fit your screen resolution.
Credits: This script is built upon the "Volume Price and Fundamentals" concept by Mohit_Kakkar08, enhanced with ATH tracking, UI improvements, and specific color logic by finallynitin & EquityCraze.
Pine Script® indicator






















