GetMonth

GetMonth ();

Description

Returns the number of the current bar month in the CST timezone. The output is returned in the range from 1 through 12.

Example

plot Price = if GetMonth() <= 6 then close else Double.NaN;

The example draws the close plot for the first half of each year.