Automatic publishing using WebRequest() - MetaTrader 5 Script - MT4/MT5 Resources

This network request function has two calling options, the first option is used to send a simple query, an example of which can be found in the quoted demo script.
The second feature option allows you to create any type of query (GET, POST, HEAD, etc.) indicating your own set of headers. This option allows flexible interaction with various Web services. This script is an example of how to publish a message on the MQL5.com website.
When you start the script, enter your mql5.com login and password.
# Property description "Example script to publish user messages" # Property description "On the wall of mql5.com" enter string enter login = ”” ; //your MQL5.com account Enter string enter password = ”” ; //Your account password Enter string input file name = "EUR/USD5.png" ; //Image in the folder MQL5/Files/ input string input file type = "image/png" ; //correct image mime type
You can use your own image name in the input file name parameter, do not forget to save the image file in the data folder /MQL5/Files/ and set the correct MIME type in the input file type parameter.

Therefore, using WebRequest() you can schedule the automatic publication of messages containing current market analysis and predictions of possible price action.
Please note that in the second version of the WebRequest() function, the following parameters passed by the user in the header are ignored, where the following values are always used:
"Accepting language: en\r\n" "Accepting character sets: *,utf-8\r\n" "Connection: keep alive\r\n" "Proxy connection: keep alive\r\n" "Pragma: No cache\r\n" "Cache Control: No Cache\r\n" ,
The Host parameter is also ignored and its value is taken from the URL.
Attachment download
📎 webrequest_publicationscript.mq5 (12.49 KB)
Source: MQL5 #12296
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •