The total volume traded in one footprint row: its buy volume plus its sell volume.
volume_row.total_volume(row) returns all the volume that traded between the row's down price and up price. The row with the largest value on a bar is the point of control.
Called as a method, row.total_volume() is the same call. Compare it across rows from footprint.rows() to see where the bar's trading concentrated.
Syntax
volume_row.total_volume(id: volume_row) -> series float
volume_row.total_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 row's buy volume plus its sell volume.
Remarks
- On Sidechair: not supported yet; the call warns "
volume_row.total_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 volume")
fp = request.footprint(10, 70)
row = na(fp) ? na : footprint.poc(fp)
value = na(row) ? na : volume_row.total_volume(row)
plot(close, "Close", color.gray)
plot(value, "POC volume", color.orange, 2)See also
Not on Sidechair yet