vitvlkv

Fundamentals example

256 3 11
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)
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
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
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder 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 Account and Billing Sign Out