Variables
year
The year of the bar being evaluated. A function of the same name also exists. The variable reads the current bar; the function reads whatever time you hand it.
Example
indicator(title="Year Example", overlay=true)
currentYear = year
plot(currentYear, title="Year", color=color.blue)
Type
series int