Liquidity tracker

Is it possible to create a liquidity tracker as an indicator? indicator needs to be able to calculate full market depth for the bid and offer side, also the imbalance between the two. Bookmap and sierra have a similar function.
Can be in customized graphically to show as a line or ohlc bars