vitvlkv

Plot earnings

134 1 14
HOWTO Get Earnings in Pine Script
Remove from Favorite Scripts Add to Favorite Scripts
study("Plot earnings", overlay=true)
t = "ESD:" + syminfo.prefix + "_" + ticker + "_EARNINGS"
c = security(t, "D", close, true)
o = security(t, "D", open, true)
h = security(t, "D", high, true)
u = security(t, "D", updatetime, true)
plotshape(c)
plotshape(o)
plotshape(h)
plotshape(u)
// c - earning
// o - estimate
// h - date (in unix time)
// u - period ending (in unix time)

Sinuhet
2 years ago
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 (http://www.dailyfx.com/calendar) or central bank releases (http://www.dailyfx.com/calendar/bank-calendar.html). I came across today that Investing.com using tradingview has addtional function (see link: http://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.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out