New article at mql5.com - Using WinInet.dll for Data Exchange between Terminals via the Internet

 

New article Using WinInet.dll for Data Exchange between Terminals via the Internet is published at mql5.com:

This article describes the principles of working with the Internet via the use of HTTP requests, and data exchange between terminals, using an intermediate server. An MqlNet library class is presented for working with Internet resources in the MQL5 environment. Monitoring prices from different brokers, exchanging messages with other traders without exiting the terminal, searching for information on the Internet – these are just some examples, reviewed in this article.

Author: Алексей Сергеев

 

Hi Rosh,

Is this capacity limited to v5 or is this also possible in v4 ?

 
FourX:

Is this capacity limited to v5 or is this also possible in v4 ?

There's lots of existing MQL4 code for retrieving textual responses from web servers, e.g. https://www.mql5.com/en/code/8435. A little less code for sending data, but that's much the same principle.

It's a bit daft that retrieving a textual response from a web server requires 4 lines of code in a Javascript environment, 4 lines of code in an ActiveX environment, and 4 to 6 lines of code in a .NET environment, but requires 9,732,651 lines of code in an MT5 environment. Retrieving data from a web server is a very frequently asked question about MQL4, and it's a mystery why the the MT5 platform doesn't therefore provide built-in support for it - even if there were to be a security setting preventing its use without user consent.
Reason: