Sidechair

volume_row.total_volume()

Browse the reference

The total volume traded in one footprint row: its buy volume plus its sell volume.

Try it in the editor

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

Pine Script
volume_row.total_volume(id: volume_row) -> series float
volume_row.total_volume() -> series float

Arguments

NameTypeDefaultDescription
idvolume_rowrequiredThe 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

Pine ScriptPoint of control volumeOpen in editor
//@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