You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I run this test code again today out of curiosity
It works on mt4 (with reasonable gaps in between requests)
It returns error 1001 on mt5 (the mt5 error is 5203 but the address is there , i'll check again with my glasses)
(webreqeusts is mt4 mqh)
Thank you so much but may you please explain the format of data more?? because to access date it is only few codes I don't see where I will change.
The code above that is what I was using and it was working great now to change the format what did I need to change in that code?
here the file is downloaded
but when I open it there is useless information
@Sergey Golubev how to change the format?
It may be something like that (Metatrader 4):
or I attach this News Trader EA here (yes, it is really public EA), and you can check by yourself
(it is version 6.3; I am having version 6.4 too - means - next version).
---------------------
I want to remind that this EA with the versions were created long time ago on the forum.
Thank you so much but may you please explain the format of data more?? because to access date it is only few codes I don't see where I will change.
The code above that is what I was using and it was working great now to change the format what did I need to change in that code?
here the file is downloaded
but when I open it there is useless information
@Sergey Golubev how to change the format?
I use -
you use -
https://ec.forexprostools.com/
It is not used https in this EA ...
Anyway, EA was uploaded (it is not the latest/recent versions but it works).
I set the referer header to investing.com/calendar and the user agent to apple iphones safari and it worked . I had the site open for a while though at the same time . maybe related
Thank you so much but may you please explain the format of data more?? because to access date it is only few codes I don't see where I will change.
The code above that is what I was using and it was working great now to change the format what did I need to change in that code?
here the file is downloaded
but when I open it there is useless information
@Sergey Golubev how to change the format?
This useless information indicates that your request is blocked by Cloudflare, a service used to cache and protect websites from attacks.
Since you are scraping web page, site owner probably want's to ban that - they put Cloudflare in front so they can filter traffic.
Cloudflare can block single IP address or range of addresses, depending on the rules.
This is not Metatrader problem. Site owners are trying to prevent web scraping.
It can be helpfull to add referrer and user agent like Lorentzos did. This can imitate request from the web browser.I use -
you use -
It is not used https in this EA ...
Anyway, EA was uploaded (it is not the latest/recent versions but it works).
Thank you so much for willing to assist the code works well but unfortunately I can't use it because it uses DLL. it has dependancy.
I set the referer header to investing.com/calendar and the user agent to apple iphones safari and it worked . I had the site open for a while though at the same time . maybe related
Thank you so much @Lorentzos Roussos
Thank you so much @Lorentzos Roussos
You are welcome
Also , guys , cache the results . You are receiving timestamps which informs you on when the last item is , in other words when you might need to check again .
You are welcome
Also , guys , cache the results . You are receiving timestamps which informs you on when the last item is , in other words when you might need to check again .
It checks twice per day. You save me a lot of time but when I will have time, I will add the second source and it will be mql5 calendar.
I set the referer header to investing.com/calendar and the user agent to apple iphones safari and it worked . I had the site open for a while though at the same time . maybe related
thank you lorentzos roussos, it worked like a charm. this really helped me.