GetLastWeek

GetLastWeek ();

Description

Returns the number of the last bar week in the CST timezone. The output is returned in the range from 1 through 53.

Example

plot Price = if GetLastWeek() == GetWeek() and GetLastYear() == GetYear() then high else Double.NaN;

This example draws the high plot for the last week of the current year.