Webrequest function and Market.

 

Hi MQL5 members.


I'm a programmer and I'm working in programming a product that is using Webrequest function to get data from my API ( JSON ). It is  possible to publish products in the MQL5 market that are using Webrequest function?

I want to make sure that using the Webrequest function isn't against the terms and rules of publishing products in the MQL5 market. 


Thank you adance.

 

You can use it in products as long as its not placing additional requirements for the operation of the product upon the user .

I assume the rules mean a secondary step requirement as the first requirement will be to add the adress in the allowed urls.

But unfortunately ,they cant be used in indicators.

https://www.mql5.com/en/docs/network/webrequest

The WebRequest() function is synchronous, which means its breaks the program execution and waits for the response from the requested server. Since the delays in receiving a response can be large, the function is not available for calls from indicators, because indicators run in a common thread shared by all indicators and charts on one symbol. Indicator performance delay on one of the charts of a symbol may stop updating of all charts of the same symbol.

The function can be called only from Expert Advisors and scripts, as they run in their own execution threads.

Documentation on MQL5: Network Functions / WebRequest
Documentation on MQL5: Network Functions / WebRequest
  • www.mql5.com
To use the WebRequest() function, add the addresses of the required servers in the list of allowed URLs in the "Expert Advisors" tab of the "Options" window. Server port is automatically selected on the basis of the specified protocol - 80 for "http://" and 443 for "https://". The WebRequest() function is synchronous, which means its breaks the...
 
Lorentzos Roussos:

You can use it in products as long as its not placing additional requirements for the operation of the product upon the user .

I assume the rules mean a secondary step requirement as the first requirement will be to add the adress in the allowed urls.

But unfortunately ,they cant be used in indicators.

https://www.mql5.com/en/docs/network/webrequest


Yes. Sir. I mean a product like Expert Advisor Or Script. I think that is possible to publish a product that using Webrequest in the market right ? It's not against the terms and the conditions of publishing products in the Market.

 
Lorentzos Roussos:

You can use it in products as long as its not placing additional requirements for the operation of the product upon the user .

I assume the rules mean a secondary step requirement as the first requirement will be to add the adress in the allowed urls.

But unfortunately ,they cant be used in indicators.

https://www.mql5.com/en/docs/network/webrequest

The script that we are working on it, it will read analysis from an API and display it in the MT4 or MT5.  I think that is not planning additional requirement sir, right ? 

 
Sayadi Achraf:

The script that we are working on it, it will read analysis from an API and display it in the MT4 or MT5.  I think that is not planning additional requirement sir, right ? 

Its okay yes 

 
Lorentzos Roussos:

Its okay yes 

Thank you sir.

Reason: