1. Cause A of Error 4014: Missing Origin Whitelist

MetaTrader 5 blocks every WebRequest() until you open Tools -> Options -> Expert Advisors, enable "Allow WebRequest for listed URL", and add the exact origin https://forexnewsradar.com (no trailing slash or path needed).

2. Cause B of Error 4014: Calling WebRequest in an Indicator

MQL5 strictly forbids WebRequest() inside Custom Indicators (OnCalculate) and Strategy Tester runs—always returning 4014 even when the URL is whitelisted. Run HTTP polling inside an Expert Advisor (OnTimer) and share flags via GlobalVariableSet().

3. Broker Prefix & Suffix Fragility Solved Server-Side

Prop firms routinely rename symbols across accounts (EURUSD.pro, EURUSDm, iEURUSD, XAUUSD.raw, GOLD). Instead of fragile MQL5 StringSubstr() hacks, pass raw _Symbol straight to ForexNewsRadar—our edge router normalizes every variant canonically.

Error-4014-Safe MQL5 WebRequest Helper (Handles Any Broker Suffix Automatically)
// 1. Must run in an Expert Advisor (.mq5 in MQL5/Experts/), NEVER in a Custom Indicator!
// 2. Tools -> Options -> Expert Advisors -> Allow WebRequest for listed URL -> https://forexnewsradar.com
// 3. Test live for $0 with EURUSD (even if your broker names it EURUSD.pro, EURUSDm, or mEURUSD):

bool FNR_FetchLiveGate(string rawSymbol = "") {
   if(MQLInfoInteger(MQL_TESTER)) return true; // WebRequest is disabled in Strategy Tester
   string sym = (StringLen(rawSymbol) > 0) ? rawSymbol : _Symbol;
   // Server normalizes EURUSD.pro, mEURUSD, XAUUSDm, iXAUUSD.pro automatically:
   string url = "https://forexnewsradar.com/api/v1/pairs/" + sym + "?compact=1";
   char post[], result[];
   string resHeaders;
   ResetLastError();
   int code = WebRequest("GET", url, "Accept: application/json\r\n", 5000, post, result, resHeaders);
   if(code == -1) {
      int err = GetLastError();
      if(err == 4014) Print("FNR Error 4014: Whitelist https://forexnewsradar.com in Tools->Options->Expert Advisors (and run as EA, not Indicator).");
      return false; // Fail-closed on network/whitelist error
   }
   if(code != 200) return false; // 402 = locked Pro pair; fail-closed
   string body = CharArrayToString(result);
   return (StringFind(body, "\"stale\":false") >= 0 && StringFind(body, "\"prop_safe_to_trade\":true") >= 0);
}
VIDEO FIELD GUIDE #19 0:47 · 1080p HD

Fix MQL5 Suffix Bugs (XAUUSD.pro) With 250B ?compact=1 JSON

Shows how automatic broker ticker normalization (.pro, m, _ecn) and the tiny 250-byte ?compact=1 JSON endpoint keep MQL5 WebRequest loops fast and bug-free.

QUANT DESK FIELD NOTE · Broker Symbol Heterogeneity & Low-Footprint Edge Parsing in MQL5

Execution venues rarely standardize instrument identifiers: Spot Gold trades as XAUUSD, XAUUSDm, XAUUSD.pro, XAUUSD_ecn, or XAU/USD across retail and institutional bridges. Exact-string lookup tables inside custom EAs fail silently when users deploy bots onto a new broker feed, throwing unknown-symbol errors or skipping news protection entirely. Server-side prefix and suffix normalization inside /api/v1/pairs/{SYMBOL} resolves messy broker strings to canonical feeds cleanly, while ?compact=1 trims payload weight down to roughly 250 flat JSON bytes so MQL5 StringFind checks parse in microseconds.

Related MT5, Prop-Firm & MCP Engineering Playbooks

Inspect Live Macro & VETO Feeds by Instrument