OPEN-SOURCE SCRIPT
Updated

Plot earnings

14401
HOWTO Get Earnings in Pine Script
Release Notes
Using tickerid function is better
Release Notes
Added an input showing how to get dividends and splits
Release Notes
Set lookahead param of security function to "on". Read more about it here tradingview.com/wiki/Context_Switching,_The_‘security’_Function

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.