OPEN-SOURCE SCRIPT
Updated

Plot earnings

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