Documentation says:
The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If you try to call the function from an indicator, GetLastError() will return error 4014 "Function is not allowed for call".
I think that use wininet.dll functions is only way to call website.
Janusz Trojca:
Thanks very clear plus good answer. :)Documentation says:
The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If you try to call the function from an indicator, GetLastError() will return error 4014 "Function is not allowed for call".
I think that use wininet.dll functions is only way to call website.
If we could call script or expert adviser from our custom indicator in regular time interval then we might be able to achieve this without using winner.DLL file.
Just one more idea. :)
Yeah. This is another way to realize this idea. It is possible to call script from indicator, but I'm afraid that it needs another dll file (user32.dll).

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello Fellow coders and traders.
I have lately quite appreciated that MQL4 and 5 language have the native Web Request function: https://www.mql5.com/en/docs/network/webrequest
So far I did not have any success using this WebRequest function for Custom Indicator.
Is there anyone successfully using this native Web Request function or something similar to call website page for Custom Indicator ? (except using any of external dll files like wininet.dll stuffs.)
Kind regards.