The buy volume in one footprint row: volume traded at the ask between the row's two prices.
volume_row.buy_volume(row) returns the volume in the row that traded as buys, meaning trades that hit the ask. The sell side is volume_row.sell_volume().
Called as a method, row.buy_volume() is the same call. The sum of buy_volume over all rows of a bar is footprint.buy_volume().
Syntax
volume_row.buy_volume(id: volume_row) -> series float
volume_row.buy_volume() -> series floatArguments
| Name | Type | Default | Description |
|---|---|---|---|
| id | volume_row | required | The volume row to read, from footprint.rows(), footprint.get_row_by_price(), footprint.poc(), footprint.vah() or footprint.val(). In method form, such as fp.delta() or row.delta(), the object before the dot supplies this value. |
Returns
series float: The buy volume in the row.
Remarks
- On Sidechair: not supported yet; the call warns "
volume_row.buy_volume()isn't supported yet; that part shows nothing." and returns na. The rest of the script runs.
Example
//@version=6
indicator("Point of control buy volume")
fp = request.footprint(10, 70)
row = na(fp) ? na : footprint.poc(fp)
value = na(row) ? na : volume_row.buy_volume(row)
plot(close, "Close", color.gray)
plot(value, "POC buy volume", color.orange, 2)See also
volume_row.sell_volumevolume_row.total_volumevolume_row.deltavolume_row.has_buy_imbalancefootprint.buy_volume
Not on Sidechair yet