I have just tried this
//@version=5
indicator("MarketCap", overlay=true, timeframe="", timeframe_gaps=true)
Outstanding = request.financial(syminfo.tickerid, "TOTAL_SHARES_OUTSTANDING", "FQ")
MarketCap = Outstanding*close
plotchar(MarketCap, "MarketCap", "", location = location.top)
for AAPL but its returning 0.
Anyone know what's wrong here?