monthend - script and chart function
This function returns a value corresponding to a timestamp of the last millisecond of the last day of the month containing date. The default output format will be the DateFormat set in the script.
Syntax:
MonthEnd(date [, shift = 0])
Arguments:
| Argument | Description |
|---|---|
| date | The date to evaluate. |
| shift | shift is an integer, where the value 0 indicates the month which contains date. Negative values in shift indicate preceding months and positive values indicate succeeding months. |