GetLastDay

GetLastDay ();

Description

Returns the number of the last bar day in the CST timezone. The output is returned in the range from 1 through 365 (366 for leap years).

Example

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

This example draws the close plot for the last bar day of the current year.