GetYear

GetYear ();

Description

Returns the number of the current bar year in the CST timezone.

Example

plot Price = if GetYear() > GetLastYear() - 3 then open else Double.NaN;

The example draws the close plot for the last three years.