Sidechair

chart.is_pnf

Browse the reference

True when the chart shows Point and Figure columns of Xs and Os, built from box size and reversal count.

Try it in the editor

Each column is a run of boxes: Xs while price rises, Os while it falls. A new column starts only when price reverses by the reversal count times the box size, and the horizontal axis counts columns, not time.

A bar's high and low span the whole column, so its height measures how far that move went.

Type

simple bool

Example

Pine ScriptColumn height in priceOpen in editor
//@version=6
indicator("chart.is_pnf: column height", overlay = false)
plot(chart.is_pnf ? high - low : na, "Column height", color.blue, style = plot.style_columns)

See also

Runs on Sidechair