GetDayOfMonth

GetDayOfMonth ( int yyyyMmDd );

Description

Returns number of day in the month based on the given YYYYMMDD parameter.

Input parameters

Parameter Default value Description
yyyyMmDd - Defines the day whose number is returned.

Example

input first_day = 10;
input last_day = 20;
plot Data = if GetDayofMonth(GetYyyyMmDd()) between first_day and last_day then close else double.NaN;

Displays the close price only for days of month falling into a specified interval.