Sidechair

footprint.delta()

Browse the reference

The delta of a footprint bar: buy volume minus sell volume over the whole bar.

Try it in the editor

footprint.delta(fp) is footprint.buy_volume(fp) minus footprint.sell_volume(fp). A positive delta means buyers were the more aggressive side over the bar, a negative one means sellers were.

Called as a method, fp.delta() is the same call. A close near the high with a negative delta, or the reverse, is the divergence order-flow traders look for.

Syntax

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

Remarks

  • On Sidechair: not supported yet; the call warns "footprint.delta() 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 deltaOpen in editor
//@version=6
indicator("Footprint delta")
fp = request.footprint(10, 70)
value = na(fp) ? na : footprint.delta(fp)
plot(close, "Close", color.gray)
plot(value, "Delta", color.orange, 2)

See also

Not on Sidechair yet