Sidechair

volume_row.delta()

Browse the reference

The delta of one footprint row: its buy volume minus its sell volume.

Try it in the editor

volume_row.delta(row) is volume_row.buy_volume(row) minus volume_row.sell_volume(row). A positive value means buyers dominated that price band, and a negative value means sellers did.

Called as a method, row.delta() is the same call. Use it to find the price where aggression flipped, or to colour each row of a custom footprint display.

Syntax

Pine Script
volume_row.delta(id: volume_row) -> series float
volume_row.delta() -> 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: Buy volume minus sell volume for the row.

Remarks

  • On Sidechair: not supported yet; the call warns "volume_row.delta() isn't supported yet; that part shows nothing." and returns na. The rest of the script runs.

Example

Pine ScriptPoint of control deltaOpen in editor
//@version=6
indicator("Point of control delta")
fp = request.footprint(10, 70)
row = na(fp) ? na : footprint.poc(fp)
value = na(row) ? na : volume_row.delta(row)
plot(close, "Close", color.gray)
plot(value, "POC delta", color.orange, 2)

See also

Not on Sidechair yet