Sidechair

footprint.poc()

Browse the reference

The point of control of a footprint bar: the price row that traded the most volume.

Try it in the editor

footprint.poc(fp) returns the volume_row with the highest total volume on the bar. It is where the most trading took place, so it often acts as a short-term price magnet or reference.

Called as a method, fp.poc() is the same call. Read the row's prices with volume_row.up_price() and volume_row.down_price(), and its volume with volume_row.total_volume().

Syntax

Pine Script
footprint.poc(id: footprint) -> volume_row
footprint.poc() -> 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

volume_row: The row with the largest total volume.

Remarks

  • On Sidechair: not supported yet; the call warns "footprint.poc() 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 ScriptPoint of control priceOpen in editor
//@version=6
indicator("Footprint POC", overlay = true)
fp = request.footprint(10, 70)
row = na(fp) ? na : footprint.poc(fp)
price = na(row) ? na : (volume_row.up_price(row) + volume_row.down_price(row)) / 2
plot(close, "Close", color.gray)
plot(price, "POC", color.orange, style = plot.style_circles)

See also

Not on Sidechair yet