What is WebRequest
WebRequest is a function in MQL4 and MQL5 that lets an EA send and receive data over the internet, much like a browser opening a web page. By default MetaTrader blocks all of these connections. An EA can only connect to addresses you add to the allowed list yourself.
Thanks to this, an EA of unknown origin can't send your account details anywhere without your permission.
Why EAs need WebRequest
- License activation: the EA asks the server whether your account ID is licensed.
- Economic calendar: to pause trading around high-impact news.
- Notifications: to Telegram or your own system.
HoangTrong.com EAs only use WebRequest to activate and periodically check the license; they never send your trading history or passwords.
Step-by-step setup
The path is the same on both platforms; only the name of the auto-trading button differs.
- Open MetaTrader 5, go to Tools›Options (or
Ctrl+O). - Select the Expert Advisors.
- Tick Allow WebRequest for listed URL.
- Click the empty row below, type
https://hoangtrong.com, press Enter. - Click OK, then turn on Algo Trading on the toolbar.
- Open MetaTrader 4, go to Tools›Options (or
Ctrl+O). - Select the Expert Advisors.
- Tick Allow WebRequest for listed URL.
- Double-click the row with the plus sign, type
https://hoangtrong.com, press Enter. - Click OK, then turn on AutoTrading on the toolbar.
Common errors
- Error 4014 (MT5) or 4060 (MT4): the address isn't on the allowed list. Check every character:
https://hoangtrong.com, with no extra spaces. - Error 5203: the network or server isn't responding. It usually clears up within a few minutes.
- Running in the Strategy Tester: WebRequest doesn't work during backtesting; this is a MetaTrader limitation.
Is it safe
It's safe as long as you only add addresses of EA providers you trust. Each address is a "door" you open for the EA, so don't add unknown addresses just because someone told you to. Review the list from time to time and remove addresses you no longer use.