The sell volume of a footprint bar: volume traded at the bid, summed over every price row.
footprint.sell_volume(fp) returns how much volume traded as sells across the bar, meaning trades that hit the bid. The buy side is footprint.buy_volume().
Called as a method, fp.sell_volume() is the same call. Subtract it from the buy volume to get the delta, or call footprint.delta().
Syntax
footprint.sell_volume(id: footprint) -> series float
footprint.sell_volume() -> series floatArguments
| Name | Type | Default | Description |
|---|---|---|---|
| id | footprint | required | The 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 sell volume of the whole bar.
Remarks
- On Sidechair: not supported yet; the call warns "
footprint.sell_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
//@version=6
indicator("Footprint sell volume")
fp = request.footprint(10, 70)
value = na(fp) ? na : footprint.sell_volume(fp)
plot(close, "Close", color.gray)
plot(value, "Sell volume", color.orange, 2)See also
Not on Sidechair yet