Reading Earnings, Split, and Dividend Data in Pine Script
Summary
This example explains how a TradingView Pine indicator requests corporate-action data for a charted stock. It maps the earnings series to report time, fiscal-period end, estimates, reported earnings, and confirmed values, then plots the earnings values. For splits, it reads the event date and ratio components and marks the ratio on the corresponding bar. For dividends, it reads the ex-dividend date and amount and adds a chart label.
The document describes the platform's current internal representation of these data series, rather than a trading signal or tested strategy. Its stated caveat is that the representation may change, so the script is only an example of how to request and display the fields. It provides no performance evidence or guidance on using corporate actions to make trades.
Key ideas
- The example requests earnings, split, and dividend series through TradingView's security function.
- Earnings fields include report timing, fiscal-period timing, estimates, reported values, and confirmed values.
- Split data supplies an event date and two values used to display the split ratio.
- Dividend data supplies the ex-dividend date and dividend amount for chart labeling.
- The platform's internal data representation may change, so the example may require updates.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.