barstate.islastconfirmedhistory - Pine Script Variable
barstate.islastconfirmedhistory
Section titled “barstate.islastconfirmedhistory”Overview
Section titled “Overview”Returns true if script is executing on the dataset’s last bar when market is closed, or script is executing on the bar immediately preceding the real-time bar, if market is open. Returns false otherwise.
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.