Variables
barstate.islastconfirmedhistory
This marks the last confirmed historical bar of the chart. Every other bar reads false. It is a separate flag from barstate.islast, which marks the last bar.
Example
indicator("BarState.islastconfirmedhistory Example", overlay=true)
// Check if the current bar is the last confirmed historical bar
is_last_confirmed = barstate.islastconfirmedhistory
// Highlight the last confirmed historical bar
plotshape(is_last_confirmed, location=location.abovebar, shape=shape.triangleup, color=color.blue, size=size.small)
Type
series bool