Retrieving data from the MT5 Calendar

 

Hi MQL5 community,

I'm trying to pull data from the MT5 calendar to use in an EA.

Can one of you experts out there provide a basic example that shows how to retrieve the last value from a high impact news event?

Thanks in advance!


Regards, Tim

 

Send a WebRequest directly to their API and parse the response using the JAson parser library. 

https://www.mql5.com/en/economic-calendar/content?date_mode=1&from=2019-03-11T00%3A00%3A00&to=2019-03-17T23%3A59%3A59&importance=12&currencies=63

 
Timothy Smith:

Hi MQL5 community,

I'm trying to pull data from the MT5 calendar to use in an EA.

Can one of you experts out there provide a basic example that shows how to retrieve the last value from a high impact news event?

Thanks in advance!


Regards, Tim

https://www.mql5.com/en/economic-calendar/content?date_mode=1&from=2019-03-11T00%3A00%3A00&to=2019-03-17T23%3A59%3A59&importance=12&currencies=63

Sorry I can not get any data with this url

Please help me

 

Use your chrome dev tools to analyse the XHR request. It still works, but you need to format your request correctly. 

Reason: