DollarVolume/MarketCap_Ratio (DVMC) 
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © polarbearking

//@version=5
indicator(title = "DollarVolume/MarketCap_Ratio", shorttitle = "DVMC", overlay = false)

DVMC_MA_ON = input.bool(true, "SHOW DVMC__MOVING_AVERAGE (Default: True)")
DVMC_MA_LEN = input.int(50, "LENGTH: DVMC__MOVING_AVERAGE")

TSO = request.financial(syminfo.tickerid, "TOTAL_SHARES_OUTSTANDING", "FQ")
MarketCap = TSO * close
DollarVolume = volume * close
DVMC = (DollarVolume / MarketCap) * 100

DVMC_MA = DVMC_MA_ON ? ta.sma(DVMC, DVMC_MA_LEN) : na

plot(DVMC, color = color.orange)
plot(DVMC_MA, color = color.blue)