Asks for the footprint of the current bar: traded volume at each price row, plus the value area and imbalances.
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
request.footprint(ticks_per_row: simple int, va_percent: simple int/float (optional), imbalance_percent: simple int/float (optional)) -> footprintArguments
| Name | Type | Default | Description |
|---|---|---|---|
| ticks_per_row | simple int | required | How many ticks each price row spans. |
| va_percent | simple int/ | 70 | Share of the bar's volume the value area covers, as a percent. |
| imbalance_percent | simple int/ | 300 | How 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
//@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