Silen's Financials Debt & Equity
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © The_Silen

//@version=5
indicator("Silen's Financials Debt & Equity", overlay=true, scale = scale.left, format = format.volume)
string str= (syminfo.prefix+":"+syminfo.ticker) 

equity_color = color.new(#BDE1A4,90)
debt_color = color.new(#E1A7B7,90)
income_color = color.new(#9BDCE1,80)
revenue_color = color.new(#A0B4E1,90)

Equity = request.financial (str, "TOTAL_EQUITY", "FQ") 
Debt = request.financial (str, "TOTAL_DEBT", "FQ")

Net_Income = request.financial (str, "NET_INCOME", "FQ")
Total_Revenue = request.financial (str, "TOTAL_REVENUE", "FQ")
    
    


plot(Equity, title = "Equity",  color = equity_color, style = plot.style_area)
plot(Debt, title = "Debt",  color = debt_color, style = plot.style_area)
plot(Net_Income, title = "Net_Income",  color = income_color, style = plot.style_area, display = display.none)
plot(Total_Revenue, title = "Total_Revenue",  color = revenue_color, style = plot.style_area, display = display.none)

