The second function option allows you to create queries of any type (GET, POST, HEAD, etc.) indicating your own set of headers. This options allows implementing flexible interaction with various Web services. This script is an example of how to post a message on the MQL5.com site.
When you start the script, enter your mql5.com login and password.
#property description "Sample script posting a user message " #property description "on the wall on mql5.com" input string InpLogin =""; //Your MQL5.com account input string InpPassword=""; //Your account password input string InpFileName="EURUSDM5.png"; //An image in folder MQL5/Files/ input string InpFileType="image/png"; //Correct mime type of the image
Thus, using WebRequest() you can arrange automatic posting of messages containing current market analysis and forecast of probable price actions.
Please note that In the second version of the WebRequest() function, the following parameters passed by the user in the header are ignored, the following values are always used in them:
"Accept-Language: en\r\n" "Accept-Charset: *,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, its value is taken from the URL.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/12296
The latest version of the TrendSignal indicator. It doesn't repaints and also works well with a template.TrendSignal Indicator
TrendSignal Indicator for MetaTrader 5.