Sidechair

request.footprint()

Browse the reference

Asks for the footprint of the current bar: traded volume at each price row, plus the value area and imbalances.

Try it in the editor

request.footprint splits each bar into price rows and records the volume traded at each. You choose the row size in ticks, and the call returns an object you read with the footprint.* functions.

The value area covers the share of volume you set in va_percent around the busiest row. imbalance_percent sets how much larger one side must be before a row counts as an imbalance.

Syntax

Pine Script
request.footprint(ticks_per_row: simple int, va_percent: simple int/float (optional), imbalance_percent: simple int/float (optional)) -> footprint

Arguments

NameTypeDefaultDescription
ticks_per_rowsimple intrequiredHow many ticks each price row spans.
va_percentsimple int/float70Share of the bar's volume the value area covers, as a percent.
imbalance_percentsimple int/float300How much larger buy volume must be than sell volume at neighbouring rows to count as an imbalance, as a percent.

Returns

footprint: a footprint object for the current bar.

Remarks

  • Footprint data needs tick-level volume, so it is limited to the history the data provider keeps.
  • On Sidechair: footprint data is not available yet. The call warns once and returns na, so the example plots nothing until it is.

Example

Pine ScriptRequest a footprintOpen in editor
//@version=6
indicator("Footprint", overlay = true)
fp = request.footprint(10)
plot(na(fp) ? na : close, "Close when data exists", color = color.orange)

See also

Not on Sidechair yet