Main clusters and core pages.
Most MetaTrader 5 Expert Advisor errors are not random. When TradingView sends a webhook signal to AlgoWay and AlgoWay routes it to MetaTrader 5 through the AlgoWayWS-MT5 EA, a failed trade usually belongs to one of a few groups: MT5 permissions, EA connection, invalid JSON, wrong symbol mapping, broker order rules, market sessions, or request rate limits.
This guide updates the old AlgoWay MT5 common errors page for the current AlgoWayWS-MT5 EA 2.10 workflow. It still covers the classic MT5 errors from the original article — 4752, 4756, 4014, 10018, and 10024 — but now places them inside the current TradingView-to-MT5 automation chain:
TradingView alert → AlgoWay webhook → AlgoWayWS-MT5 EA → MetaTrader 5 broker server
Use this page if you are searching for MT5 EA error 4752, MetaTrader 5 error 4756, MT5 error 4014, TRADE_RETCODE_MARKET_CLOSED 10018, MT5 error 10024 too many requests, or TradingView to MT5 automation not working.
Last updated: 2026-05-12 • Author: AlgoWay
Before fixing an MT5 error, identify the layer where the failure happened. This prevents guessing.
| Layer | Typical symptom | Where to check |
|---|---|---|
| TradingView | Alert does not send, webhook fails, message is not JSON | TradingView alert settings and message body |
| AlgoWay webhook | Payload rejected, invalid fields, Error 415 | AlgoWay webhook logs |
| AlgoWayWS-MT5 EA | EA not connected, wrong UUID, DLL permission problem | MT5 Experts tab and AlgoWay dashboard |
| MetaTrader 5 terminal | AutoTrading disabled, EA not allowed to trade | MT5 toolbar, Options, EA properties |
| Broker server | Market closed, request rejected, invalid stops, wrong lot size | MT5 Journal, Experts tab, symbol specification |
If the signal never reaches AlgoWay, this is not an MT5 error. If AlgoWay receives the payload but MT5 does not react, check the AlgoWayWS-MT5 EA connection. If MT5 receives the command but the broker rejects it, check symbol rules, volume, stops, filling type and sessions.
Check these items before focusing on a specific error code:
Current setup guide: How to connect TradingView to MetaTrader 5 with AlgoWay EA.
OrderSend failed. Error code: 4752
autotrading disabled by client/server
What it means: MT5 or the broker does not allow the Expert Advisor to place trades. This is usually a permission problem, not a TradingView problem and not a JSON problem.
Common causes:
If the button is disabled or the broker blocks trading, AlgoWay cannot force MT5 to execute the trade. Fix the terminal or broker permission first.
OrderSend failed. Error code: 4756
request rejected
What it means: the broker rejected the trade request. The signal may have reached AlgoWay and MT5 correctly, but the final order parameters did not pass broker-side rules.
Common causes:
For TradingView automation, 4756 often means that the alert is technically delivered, but the final broker request is not acceptable.
Error code: 4014
function is not allowed for call
What it means: 4014 depends on the context. In older WebRequest-based EAs it often meant the URL was not allowed in MT5 options. In newer WebSocket/DLL-based workflows, it can indicate that the terminal or strategy tester context does not allow the function being called.
For old AlgoWay MT5 pages, 4014 was usually explained as a WebRequest whitelist issue. The current AlgoWayWS-MT5 EA workflow is WebSocket-based, so the first checks are different: current EA version, DLL imports, live/demo chart context, and MT5 permissions.
If your build still uses WebRequest, open:
MT5 → Tools → Options → Expert Advisors
Then allow WebRequest for the required AlgoWay URL exactly as specified by the old EA guide. For current installation, follow the current AlgoWayWS-MT5 setup instead.
OrderSend failed. Error code: 10018
TRADE_RETCODE_MARKET_CLOSED
What it means: the broker server says the selected market is closed. The Expert Advisor may be working correctly, but the symbol is not currently available for trading.
Common causes:
This is not solved by changing the webhook URL. The broker is telling MT5 that the market cannot currently accept orders.
OrderSend failed. Error code: 10024
TRADE_RETCODE_TOO_MANY_REQUESTS
What it means: too many order requests are being sent in a short time. MT5 or the broker rejects the request stream to protect the trading server.
Common causes:
If AlgoWay receives the same webhook many times, the problem may be in the TradingView alert condition or Pine Script logic, not in MT5.
Invalid stops are a common cause of rejected MT5 orders. The broker can reject Stop Loss or Take Profit values if they are on the wrong side of the market, too close to the current price, or rounded incorrectly for the symbol digits.
Example problems:
Use the advanced risk management guide to understand how AlgoWay handles SL/TP and trailing stop automation.
If TradingView fires and AlgoWay logs show the payload, but MT5 does not trade, check these items:
If AlgoWay logs are empty, the issue is before MT5. Check TradingView webhook URL, alert status and JSON message.
Error 415 usually happens before MetaTrader 5 is involved. It means the webhook server rejected the content type or message format. In TradingView setups, this often happens when the alert message is not valid JSON.
Use this guide: How to fix AlgoWay webhook Error 415.
Example of valid JSON:
{
"platform_name": "metatrader5",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}"
}
One of the most common TradingView-to-MT5 automation problems is symbol naming. TradingView may send a clean ticker, while the broker uses suffixes, prefixes or contract-specific names.
| TradingView ticker | Possible MT5 broker symbol |
|---|---|
EURUSD |
EURUSD.a, EURUSDm, EURUSD.r |
XAUUSD |
XAUUSD.a, GOLD, XAUUSDm |
BTCUSDT |
BTCUSDTm, BTCUSD, BTCUSD.r |
Always check the exact symbol in MT5 Market Watch. If needed, configure symbol mapping in the current AlgoWayWS-MT5 setup.
Some failures are not error-code problems. They happen because the selected execution mode does not match the account behavior.
Full explanation: How AlgoWay handles opposite trading signals.
This page is the main troubleshooting hub. Use the separate pages when the error is specific:
When AlgoWay MT5 automation fails, use this order:
AlgoWay automation is easiest to troubleshoot when you separate the signal layer, webhook layer, EA connection layer and broker execution layer. Do not treat every failed order as the same problem.