Sidechair

footprint.total_volume()

Browse the reference

The total volume traded on a footprint bar: the sum of the buy and sell volume across every price row.

Try it in the editor

footprint.total_volume(fp) returns all the volume of the bar the footprint describes. It matches the bar's volume when the footprint covers every trade.

Called as a method, fp.total_volume() is the same call. Read it next to footprint.delta() to see how much of the volume was one-sided.

Syntax

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

Arguments

NameTypeDefaultDescription
idfootprintrequiredThe footprint to read, from request.footprint(). In method form, such as fp.delta() or row.delta(), the object before the dot supplies this value.

Returns

series float: The total volume of the bar, buy plus sell.

Remarks

  • On Sidechair: not supported yet; the call warns "footprint.total_volume() isn't supported yet; that part shows nothing." and returns na. request.footprint() also returns na, so a script that guards with na() runs and shows only its other output.

Example

Pine ScriptFootprint total volumeOpen in editor
//@version=6
indicator("Footprint total volume")
fp = request.footprint(10, 70)
value = na(fp) ? na : footprint.total_volume(fp)
plot(close, "Close", color.gray)
plot(value, "Total volume", color.orange, 2)

See also

Not on Sidechair yet