GetDay

GetDay ();

Description

Returns the number of the current 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 GetDay() <= 100 then close else Double.NaN;

The code draws the close plot for the first 100 days of each year.