MQL4 Reference MQL5 features MQL5 functions Economic Calendar

Economic calendar functions

This section describes the functions for working with the economic calendar available directly in the MetaTrader platform. The economic calendar is a ready-made encyclopedia featuring descriptions of macroeconomic indicators, their release dates and degrees of importance. Relevant values of macroeconomic indicators are sent to the MetaTrader platform right at the moment of publication and are displayed on a chart as tags allowing you to visually track the required indicators by countries, currencies and importance.

Economic calendar functions allow conducting the auto analysis of incoming events according to custom importance criteria from a perspective of necessary countries/currencies.

Function

Action

CalendarCountryById

Get a country description by its ID

CalendarEventById

Get an event description by its ID

CalendarValueById

Get an event value description by its ID

CalendarCountries

Get the array of country names available in the calendar

CalendarEventByCountry

Get the array of descriptions of all events available in the calendar by a specified country code

CalendarEventByCurrency

Get the array of descriptions of all events available in the calendar by a specified currency

CalendarValueHistoryByEvent

Get the array of values for all events in a specified time range by an event ID

CalendarValueHistory

Get the array of values for all events in a specified time range with the ability to sort by country and/or currency

CalendarValueLastByEvent

Get the array of event values by its ID since the calendar database status with a specified change_id

CalendarValueLast

Get the array of values for all events with the ability to sort by country and/or currency since the calendar database status with a specified change_id