vitvlkv

Fundamentals example

334 3 13
HOWTO Get Fundamentals data in Pine Scripts
Remove from Favorite Scripts Add to Favorite Scripts
study("Fundamentals in Pine")
field = input("DEBT_TO_EQUITY", title="EDGAR Field")
sym = tickerid("EDGR", ticker + "_" + field)
series = security(sym, "D", close, false)
plot(series, color=orange, linewidth=3, style=linebr)
Hi, very helpfull thanks!
It works for EBITDA Value, it doesnt work for MARKET CAP.
Any ideas?

study("Fundamentals in Pine")
field = input("MARKET_CAP", title="EDGAR Field")
sym = tickerid("EDGR", ticker + "_" + field)
series = security(sym, "D", close, false)
plot(series, color=orange, linewidth=3, style=linebr)
Reply
ilamfev ilamfev
Here is the solution:
sym2 = tickerid("EDGR", ticker + "_" + "TOTAL_SHARES_OUTSTANDING")
shares = security(sym2,"D",close,false)
stock = security(ticker,"D",close,false)
mkt=stock*shares

Thank you! Appreciate it!
Reply
study("Fundamentals in Pine")
field = input("DIVIDENDS_PAID", title="EDGAR Field")
sym = tickerid("EDGR", ticker + "_" + field)
series = security(sym, "D", close, true)
plot(series, color=orange, linewidth=3, style=linebr)
+1 Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out