Technical · 2 min read

barstate.isconfirmed

barstate.isconfirmed is a Pine Script built-in that is true on all historical bars and on the closing update of the realtime bar, and false while a realtime bar is still forming.

How it works

Gating a condition on it means the script evaluates only finished candles, so a condition true at the close stays true in history. The cost is one bar of delay: the entry becomes available at the close of the signal bar rather than during it, and a correct backtest carries the same delay. Combining it with calc_on_every_tick reintroduces intrabar evaluation elsewhere, and an alert set to fire once per bar rather than once per bar close can still trigger intrabar regardless of the code.

Why it matters on a funded account

It fixes intrabar repainting only. Higher-timeframe lookahead and back-adjusted series repaint on fully confirmed bars too and need their own fixes.

Read next

Part of the Puravida Edge prop trading glossary. Firm-specific figures verified September 2026; rules change frequently — confirm on the firm's site.