Live bid/ask, bar quality and session facts: data only CAM scripts can use.
Everything under cam. is CAM's own market data. These scripts run on CAM only, not on TradingView. Where a market has no such data, the value is na and the editor tells you why.
cam.
cam.bid
cam.ask
cam.spread
cam.mid
cam.session_first
cam.is_rth
cam.gap_before
cam.provisional
cam.partial
Live bid and ask exist on the bar that is forming now; on history they are na. There is no order-book depth.
Heatmaps need thousands of cells, far more than the 500-object limit of lines and boxes. cam.draw.heatmap draws them natively and stays fast.
cam.draw.heatmap