vitvlkv

Fundamentals example

175 3 5
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)
vitvlkv MOD
a year ago
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
ilamfev
2 months ago
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
2 months ago
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
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