Sugestão da Casa
OPEN-SOURCE SCRIPT

Earnings Snapshot [Trendoscope]

14 334
🎲 Overview

The Earnings Snapshot [Trendoscope®] is a custom indicator designed to provide traders and investors with a quick, visual overview of a stock's earnings performance and its impact on price action. This tool automates the analysis of earnings reports by fetching historical and future earnings data, calculating growth metrics for both earnings and price changes, and presenting the information in an intuitive table format on the chart. It also adds interactive labels at key earnings dates for detailed breakdowns.

During the earning season, I was trying to understand the earnings and revenue growth of microsoft in comparison with thier price growth. This involved tidious process of taking scereenshot of multiple earning reports and then drawing correlations between them.

snapshot

This script eliminates the tedium of manual data gathering and visualization. It focuses on key metrics like actual vs. estimated earnings, year-over-year (Y2Y) comparisons, and future estimates, while highlighting how these events correlate with price movements. Currently, the script handles earnings per share (EPS) data effectively, but revenue details are not included due to ongoing technical challenges with the available data interfaces in Pine Script. Future updates may incorporate revenue analysis once we find an effective way to present this data.

This indicator is ideal for fundamental analysis, earnings season preparation, or post-earnings reviews, helping users spot patterns such as earnings surprises, growth trends, or price reactions.

🎲 Key Features
  • Earnings Data: Retrieves actual, estimated, and standardized EPS from TradingView's built-in request.earnings function.
  • Growth Calculations: Computes percentage changes in earnings and price compared to the previous quarter (Last), year-over-year (Y2Y, based on 4 quarters back), and future estimates.
  • Visual Table Display: A customizable table in the top-right corner showing dates, growth percentages, and color-coded indicators (lime for positive growth, orange for negative).
  • On-Chart Infomration: Based on the settings, users can enable presentation of earnings, price and the growth data on chart.
  • Historical Depth: Configurable history lookback (up to 24 quarters) to analyze past earnings.
  • Tooltip Mode: For a cleaner chart, labels show a score summary with full details available on hover.
  • Future Earnings Integration: Includes upcoming EPS estimates and their projected growth from the last actual earnings.

🎲 Display Modes

🎯Tooltip Mode
If we select tooltip mode, it is better to chose the label size as either large or huge for better visibility. In tooltip mode, the data is not directly presented on the screen. Instead, we display the calculated score on the earnings release bar. The earnings and price growth info will show up upon hovering on the printed score value.

snapshot

🎯Text Mode
In case of text mode, all the calculated earnings and price growth data is printed directly on the chart. This will provide easier access to the data. However, it fills the chart. It is usefull for people who do not use additional indicators on the same chart or someone who trades mainly based on the earnings reports.

snapshot

🎯Tabular Data
Tabular data presents the growth of Earnings and Price based on last quarter as well as Y2Y along with growth of estimated earnings. The table can be hidden through input settings.

snapshot

🎲 Diving Deep

🎯Information Gathered and Presented
At present, we have tried collating and presenting following information for every earnings.
  • Q2Q Earnings Growth
  • Q2Q Price Growth
  • Y2Y Earnings Growth
  • Y2Y Price Growth
  • Q2Q Future Estimated Earning Growth

🎯 Calculation of Score and Color coding
When in text mode, the information of earnings and price growth are printed on the chart completely. These displays are color coded based on a calculated score. You can also see the score directly on the chart when the display mode is tooltip mode. Let us try to understand how this score is calculated.

Score is nothing but combination of different factors of price and earnings growth. Following conditions are considered for the calculation.

  • If Earnings growth is positive, add 1 else reduce the score by 1
  • If price growth is positive, add 1 else reduce the score by 1
  • If Earnings growth percent is higher than price growth percent, then add 1, else reduce the score by 1

Similar calculations are repeated for Y2Y earning and price growth. Finanlly the score also looks at if the future estimated earning is expected to increase from current actual earnings or is it expected to reduce.

Since there are 7 factors, the score can vary from -7 to +7. Higher the score, the greener the text background will be and lesser the score, the text background will turn more towards red.

🎯 Limitations
  • Assumes quarterly earnings; irregular reporting schedules may affect Y2Y accuracy.
  • Historical depth is limited to 24 quarters to avoid performance issues, but can be adjusted.
  • Works best on daily/weekly timeframes where earnings bars are visible.
  • No alerts or backtesting integration; this is purely a visualization tool.

🎯 Example of Interpretations
  • A green label with positive growth in both earnings and price suggests a strong beat with bullish reaction.
  • Orange cells in Y2Y might indicate slowing growth despite a recent beat.
  • Negative future estimates could signal caution for upcoming reports.

If you encounter issues or have suggestions, feel free to provide feedback. This script aims to streamline your manual analysis—happy trading!

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.