GetLastYear

GetLastYear ();

Description

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

Example

plot Price = if GetLastYear() == GetYear() then close else Double.NaN;

The code draws the close plot for the current year.