TradingView
vitvlkv
2015年5月5日午後2時30分

Plot earnings 

Ford Motor CompanyNYSE

詳細

HOWTO Get Earnings in Pine Script

リリースノート

Using tickerid function is better

リリースノート

Added an input showing how to get dividends and splits

リリースノート

Set lookahead param of security function to "on". Read more about it here tradingview.com/wiki/Context_Switching,_The_‘security’_Function
コメント
white_cotton
Sir.
I want to use your script, but I get an error.
It says that the error is due to ESD. -_-;;
Sinuhet
Thank you! Great work. Just wondering do you think there is a way to plot information from external source such as publically available economic calenders (dailyfx.com/calendar) or central bank releases (dailyfx.com/calendar/bank-calendar.html). I came across today that Investing.com using tradingview has addtional function (see link: uk.investing.com/quotes/us-dollar-index-streaming-chart). At the end I would like for example to have a script which would display let us say all FOMC meetings on the chart.
jamiespips
Hey @vitvlkv

Thanks very much for this code. I'm trying to divide the current quarter by the same quarter's earning in the year previous (so divide the current EPS by the EPS 4 quarters ago).

I can't figure out how to do this because when referencing c[1] or c[2] or c[3] etc this fetches the previous period value, instead of the previous earnings value.

My programming skills aren't sharp enough to figure out how to do this - would you be able to help please?

Thanks!
Ziggurat21
@jamiespips, did you ever figure this out? I also want to calculate % increase/decrease in earnings based on same quarter of last year?
PraveenGramle
I am getting error shows error in ESD? request if you can share if there is any changes required in esd? not able to figure out the issue!
SciWalker
Cannot work, it keeps on showing STUDY ERROR
Prober7314
The reason I ask is I have never seen a charting service that plots the dividend yield on the price graph , this would really be great for visual references for value hunters looking at charts
andkii
@Prober7314, if you havent found it yet, check out koyfin.com. Free platform, and you can chart all sorts of macro/financials right on a price chart
Prober7314
How would you plot the dividend yield for all stocks when viewing for various for set standards, for example looking at apple , I would like to plot 4 yield variable as line markers for the following,2%,3%,4% and so on as reference to price action
chirag-magneto
Can i get this script for angular ?
詳細