vitvlkv

HOWTO Get Earnings

A method how you can access Earnings in your Pine Script code. Enjoy!
Remove from Favorite Scripts Add to Favorite Scripts
study("HOWTO Get Earnings")
// NOTE: this is not a part of public API.
// It could be changed in the future.
t = "ESD:" + ticker + "_EARNINGS"
esti = security(t, "D", open, true)
earn = security(t, "D", close, true)
plot(esti, style=circles, linewidth=4)
plot(earn, style=cross, linewidth=4)

Comments

Updated version
+3 Reply
Hi!
How can I get the earning date and exit a trade my strategy, for example, one day ahead?

Assume I have:

Sell = (some rules) or earningDate

Thanks.
+2 Reply
Hey vitvlkv can you help me understand what exactly ESD:Ticker_Earnings is doing?
Reply
Possible to add the estimated lookahead? thanks.
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out