How to enable WebRequest on MT4 and MT5 (with menu paths)

What WebRequest is, why EAs need it, how to add an address to the allowed list in MetaTrader 4 and MetaTrader 5, and how to fix common errors.

GuidesHoang Trong · 14/11/2026 · 4 min read

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.

  1. Open MetaTrader 5, go to Tools›Options (or Ctrl+O).
  2. Select the Expert Advisors.
  3. Tick Allow WebRequest for listed URL.
  4. Click the empty row below, type https://hoangtrong.com, press Enter.
  5. Click OK, then turn on Algo Trading on the toolbar.
No need to tick Allow DLL imports. Be careful with any EA that asks for DLL imports without explaining why.

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.

More articlesPinbar with MA: filter Pinbars with the trend and enter when price touches the MA→What is an EA? What to know before using a trading robot→Building an EA for prop firm challenges: 6 must-have risk rules→

Have a strategy you want to automate?

Call or message on Zalo for advice and a quote within 1 hour.