barstate.ishistory - Pine Script Variable
barstate.ishistory
Section titled “barstate.ishistory”Overview
Section titled “Overview”Returns true if current bar is a historical bar, 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.