Get the array of values for all events in a specified time range by an event ID.
[in] Event ID.
[out] MqlCalendarValue type array for receiving event values.
[in] Initial date of a time range events are selected from by a specified ID, while datetime_from < datetime_to.
[in] End date of a time range events are selected from by a specified ID. If the datetime_to is not set (or is 0), all event values beginning from the specified datetime_from date in the Calendar database are returned (including the values of future events).
Returns true if successful, otherwise - false. To get information about an error, call the GetLastError() function. Possible errors:
If an event value does not have any of the fields specified below
then the value of the missing field is returned as INT64_MIN (-9223372036854775808). See the revised_prev_value field value in the example below.
All functions for working with the economic calendar use the trade server time (TimeTradeServer). This means that the time in the MqlCalendarValue structure and the time inputs in the CalendarValueHistoryByEvent/CalendarValueHistory functions are set in a trade server timezone, rather than a user's local time.