barstate.isfirst - Pine Script Variable
barstate.isfirst
Section titled “barstate.isfirst”Overview
Section titled “Overview”Returns true if current bar is first bar in barset, 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.