Operating Cash Flow on Total Assets Ratio
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © All_Verklempt

//@version=5

indicator("Cash Flow on Total Assets Ratio",  shorttitle="CFoTA", format=format.price, precision=2, overlay=false, timeframe="", timeframe_gaps=false)

// Formula

CF      = request.financial(syminfo.tickerid, "CASH_F_OPERATING_ACTIVITIES", "TTM")
TA      = request.financial(syminfo.tickerid, "TOTAL_ASSETS", "FY")
CFoTA   = (CF/TA)

// Plot info

plot(CFoTA, linewidth=2, color=#2d82b7, style=plot.style_linebr)

