OPEN-SOURCE SCRIPT

Plot earnings

Updated
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
Price/Earnings Ratio (P/E Ratio)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer