Sidechair

footprint.rows()

Browse the reference

Returns every price row of a footprint bar as an array of volume_row values.

Try it in the editor

footprint.rows(fp) returns an array<volume_row> with one entry for each price row the bar traded in, each ticks_per_row ticks tall, using the ticks_per_row you passed to request.footprint(). Loop over it to read each row's buy and sell volume and its imbalances.

Called as a method, fp.rows() is the same call. For one level only, footprint.get_row_by_price() is cheaper than scanning the array, and footprint.poc() returns the busiest row directly.

Syntax

Pine Script
footprint.rows(id: footprint) -> array<volume_row>
footprint.rows() -> array<volume_row>

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

array<volume_row>: An array holding every volume row of the bar.

Remarks

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

See also

Not on Sidechair yet