barstate.islast - Pine Script Variable
barstate.islast
Section titled “barstate.islast”Overview
Section titled “Overview”Returns true if current bar is the last bar in barset, false otherwise. This condition is true for all real-time bars in barset.
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.