The type for one price row of a footprint: the buy and sell volume traded between its down price and up price.
A volume_row is one price band inside a footprint. It holds the band's lower edge (volume_row.down_price()), its upper edge (volume_row.up_price()), the buy volume, the sell volume, the total and their difference, the delta. It also records whether the row shows a buy imbalance or a sell imbalance.
You get rows from footprint.rows(), footprint.get_row_by_price(), or from the key-level functions footprint.poc(), footprint.vah() and footprint.val().
Remarks
- A row is read-only: the volume_row.* functions return its values, and none of them changes it.
- On Sidechair: not supported yet; each volume_row.* call warns "volume_row.<name>() isn't supported yet; that part shows nothing." and returns na. The rest of the script runs.
Example
//@version=6
indicator("Point of control", overlay = true)
fp = request.footprint(10)
poc = na(fp) ? na : footprint.poc(fp)
price = na(poc) ? na : (volume_row.up_price(poc) + volume_row.down_price(poc)) / 2
plot(close, "Close", color.gray)
plot(price, "POC", color.orange, style = plot.style_circles)See also
Runs on Sidechair