barstate.isconfirmed - Pine Script Variable
barstate.isconfirmed
Section titled “barstate.isconfirmed”Overview
Section titled “Overview”Returns true if the script is calculating the last (closing) update of the current bar. The next script calculation will be on the new bar data.
boolQualifier
Section titled “Qualifier”series
Remarks
Section titled “Remarks”- Pine Script® code that uses this variable could calculate differently on history and real-time data.