Greetings to all!!! Please tell me how to solve the following problem: get data from the economic calendar with investing.com in the expert Advisor, as soon as they are published there, i.e. start “listening” to the site shortly before the publication of the economic indicator and receive it as soon as it is published with a delay of at least 100 MS. I apologize if my statement of the question is not quite correct, because I started to understand in detail how information is exchanged over the HTTP Protocol only now, as with Wininet, and, accordingly, I do not know a large number of nuances.
I tried to use WinInet and WebRequest for this, and got a simple script based on wininet to download a page from the Internet ( the average session establishment time (the average execution time of the InternetAttemptConnect, InternetOpen and InternetOpenUrl functions in the above code) is about 500ms, and the data reading time (InternetReadFile) is about 1400 MS, a total of 1900 MS. Using the WebRequest function (the code corresponds to the 1st example allows you to get data a little faster – 1050 MS, however, I understand that I can not affect the speed of the WebRequest request in any way.
I tried to conjure (not quite understanding how these flags will work, and whether they will work at all) with flags in InternetOpenUrl, but it did not help (I will not give what exactly, because, in my opinion, it did not make much sense).
I hope that using WinInet or some other dll to solve this problem, and dear friends will give me the necessary advice, however, the idea was to try to write a browser app that would record the indicator in the text file immediately after it is published, and the EA reads the index from this file, but I need to understand Java, and before that, I’d like to ask the experts in this field (writing applications for the browser), if any, and really if such a program is to write and ask them to tell the right direction, if feasible.
Thank you in advance for your answers.