Hi,
I am trying to retrieve the calendar from the investing website to show on MT5.
I have this URL that in a browser works OK, but if I load it through WebRequest in MQL5 it gives me a permission denied error like this
It seems that the error is a permission denied because I am not sending cookies, but I don't know how to do it.
Could you help me?
Thank you !!
Can't help you in that particular cookie-question, because this seems to be not solvable by just returning a cookie sent by this particular webpage. In short: The URL you called doesn't send a cookie it self, but a return of an afterwards requested Javascript. The Browser does this automatically, but you'd have to interpret the HTML, load, interpret & run the JS, etc. And even if this would be possible easily, if they change their page, your program wouldn't work anymore.
So why don't you use the calendar integrated in MT5? See: https://www.mql5.com/en/docs/calendar
Edit: Just added an screenshot as a proof, that your URL itself doesn't send a cookie.

- www.mql5.com
Can't help you in that particular cookie-question, because this seems to be not solvable by just returning a cookie sent by this particular webpage. In short: The URL you called doesn't send a cookie it self, but a return of an afterwards requested Javascript. The Browser does this automatically, but you'd have to interpret the HTML, load, interpret & run the JS, etc. And even if this would be possible easily, if they change their page, your program wouldn't work anymore.
So why don't you use the calendar integrated in MT5? See: https://www.mql5.com/en/docs/calendar
Edit: Just added an screenshot as a proof, that your URL itself doesn't send a cookie.
I you're missing some events in the MQL-calendar, i'd suggest to post a request here in the forum and write what exactly you're missing.
Because it doesn't make sense IMHO that everybody has to find his own external solution, if there is an integrated tool and just a view details are missing - help them getting better ;)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am trying to retrieve the calendar from the investing website to show on MT5.
I have this URL that in a browser works OK, but if I load it through WebRequest in MQL5 it gives me a permission denied error like this
It seems that the error is a permission denied because I am not sending cookies, but I don't know how to do it.
Could you help me?
Thank you !!