Skip to content
Algo Trade Analytics Docs

barstate.islast - Pine Script Variable

Returns true if current bar is the last bar in barset, false otherwise. This condition is true for all real-time bars in barset.

bool

series

  • Pine Script® code that uses this variable could calculate differently on history and real-time data.