Main clusters and core pages.
MT5 Error 4752 means MetaTrader 5 is blocking Expert Advisor trading. In an AlgoWay setup, the TradingView alert may be sent correctly, the AlgoWay webhook may receive the JSON correctly, and the AlgoWayWS-MT5 EA may receive the command correctly — but MetaTrader 5 refuses the final order because automated trading is disabled.
This is why Error 4752 often appears during TradingView to MT5 automation, MetaTrader 5 webhook execution, or AlgoWayWS-MT5 EA setup. The error is usually not caused by TradingView and not caused by the webhook itself. It is usually caused by one of the MT5 permission switches that controls whether Expert Advisors are allowed to trade.
The typical execution route is:
TradingView alert → AlgoWay webhook → AlgoWayWS-MT5 EA → MetaTrader 5 order request → Error 4752
Last updated: 2026-05-12 • Author: AlgoWay
Error 4752 is one of the most confusing problems in a TradingView to MetaTrader 5 automation setup because the signal chain can look successful until the very last step. The TradingView webhook alert can fire correctly. AlgoWay can receive a valid JSON payload. The webhook route can be active. AlgoWayWS-MT5 EA can be connected. Still, the MT5 terminal can reject the order because the terminal, chart, account, or broker does not allow automated trading.
That makes this problem different from a broken TradingView alert, wrong webhook URL, invalid JSON, or AlgoWay routing issue. If the AlgoWay webhook logs show the request and MT5 Experts logs show Error 4752, the next work is inside MetaTrader 5 permissions, not inside Pine Script. This distinction is important for SEO and for troubleshooting because many users search for phrases such as TradingView webhook not opening MT5 trade, MT5 EA not trading, AutoTrading disabled by client terminal, Algo Trading disabled MT5, and AlgoWay MT5 Error 4752.
In other words, Error 4752 is a permission-layer failure. The automation path is alive enough to reach the EA, but MetaTrader 5 refuses to let the Expert Advisor place the trade. The correct fix is to enable and verify all algorithmic trading permissions before changing the TradingView alert message, strategy placeholders, order size, symbol mapping, or webhook JSON.
Error 4752 is commonly shown as:
OrderSend failed. Error code: 4752
Trading by Expert Advisors prohibited
AutoTrading disabled by client terminal
ERR_TRADE_DISABLED
To fix it, check these points first:
Error 4752 is the MetaTrader/MQL5 error commonly known as ERR_TRADE_DISABLED. In practical terms, MT5 is saying: this Expert Advisor is not allowed to place trades right now.
This does not necessarily mean that the EA is broken. It means that trade execution by an EA is prohibited at the terminal, chart, account, broker, or environment level.
In real AlgoWay support cases, Error 4752 usually comes from one of several permission switches. The important point is that MetaTrader 5 has more than one place where automated trading can be blocked. One enabled switch does not guarantee the whole EA execution path is allowed.
This is why a proper Error 4752 fix should be methodical. Do not only click the toolbar button and assume the issue is solved. Check the global terminal switch, the Expert Advisors options page, the EA chart permissions, the account login type, and the broker/server logs. AlgoWay can deliver the command, but MT5 still controls whether the EA may trade.
When a user says “TradingView alert reached AlgoWay but no MT5 order opened,” check the layers in the correct order. First confirm whether the webhook side is working. Then confirm whether the EA side receives the command. Only after that check the MetaTrader 5 execution permission.
This workflow prevents unnecessary changes. If AlgoWay never received the webhook, the issue is not Error 4752. If AlgoWay received the webhook and MT5 says automated trading is prohibited, the issue is not the TradingView strategy. It is the MT5 permission layer.
TradingView does not place the final MT5 order. TradingView sends an alert. AlgoWay receives and processes that alert. The MT5 Expert Advisor performs the actual execution inside MetaTrader 5.
That means a signal can pass the first parts of the chain and still fail at the final MT5 permission layer:
| Layer | Status | What it means |
|---|---|---|
| TradingView alert | Sent | The alert fired and tried to send a webhook. |
| AlgoWay webhook | Received | AlgoWay received the JSON signal. |
| AlgoWayWS-MT5 EA | Signal received | The EA got the command from AlgoWay. |
| MetaTrader 5 order execution | Rejected | MT5 blocks automated trading and returns Error 4752. |
This is why the user may see successful webhook logs but no trade in MT5.
The first check is the global MT5 automation switch.
If this global switch is disabled, every Expert Advisor in the terminal is blocked from trading, including AlgoWayWS-MT5.
The second check is the terminal-level Expert Advisor settings.
MT5 → Tools → Options → Expert Advisors
Check the following:
After changing these settings, restart the EA or reattach it to the chart and test again.
MT5 can allow algo trading globally while still blocking a specific EA on a specific chart. This is one of the most common causes of Error 4752.
If the EA is not allowed to trade from its own chart properties, MT5 can still return 4752 even when the toolbar button is enabled.
If all local MT5 settings are enabled and Error 4752 still appears, check the broker/account side.
Possible broker-side causes:
To confirm, try placing a small manual trade on the same symbol. If manual trading also fails, the issue is not AlgoWay. If manual trading works but EA trading fails, return to MT5 EA permissions and broker rules for automated trading.
MetaTrader 5 logs show whether the block comes from the terminal, the EA, the account, or the trading server.
4752, trade disabled, prohibited, or AutoTrading disabled.Common log messages include:
Trading by Expert Advisors prohibited
AutoTrading disabled by client terminal
trade disabled
ERR_TRADE_DISABLED
OrderSend failed. Error code: 4752
AlgoWay has two important roles in this chain: receiving the webhook and routing the command to the MT5 connector. If those two steps are visible in logs, the remaining rejection belongs to the execution environment. This is why AlgoWay logs and MT5 logs should be read together.
Use this interpretation:
| Observation | Meaning | Next action |
|---|---|---|
| No AlgoWay log entry | TradingView did not reach AlgoWay. | Check webhook URL, alert status, TradingView plan, and JSON delivery. |
| AlgoWay received invalid payload | The request arrived but cannot be parsed correctly. | Fix JSON, content type, quotes, commas, and required fields. |
| AlgoWay received valid payload and MT5 logs show 4752 | The webhook chain works, but MetaTrader 5 blocks EA execution. | Fix MT5 algorithmic trading permissions. |
| MT5 accepts EA trading but broker rejects order | This is no longer Error 4752. | Check broker error, symbol, lot size, stops, market session, filling mode. |
This separation is useful for users running automated trading from TradingView, Telegram signals, manual webhook alerts, or another AlgoWay source. Error 4752 is not source-specific. It can appear with any source when the final destination is MetaTrader 5 and the Expert Advisor is not allowed to trade.
When Error 4752 appears, do not immediately rewrite the Pine Script strategy, change the webhook UUID, rebuild the AlgoWay route, or replace the JSON schema. Those changes can create new problems while the real issue remains unchanged. If the error message clearly says that trading by Expert Advisors is prohibited, the first fixes are MT5 permissions and account trading permissions.
Also do not confuse a successful TradingView alert with a successful MT5 trade. A TradingView alert only proves the source event fired. AlgoWay logs prove the webhook was received and processed. The MT5 Experts and Journal tabs prove whether the terminal accepted or rejected EA execution. For Error 4752, the key evidence is in MetaTrader 5.
Use this checklist when Error 4752 appears in the current AlgoWayWS-MT5 EA workflow:
| Check | Where | Expected result |
|---|---|---|
| Algo Trading switch | MT5 toolbar | Enabled |
| Algorithmic trading permission | Tools → Options → Expert Advisors | Allowed |
| EA chart permissions | Chart → F7 → Common | EA trading allowed |
| DLL imports | MT5 options and EA settings if required | Allowed for current AlgoWayWS-MT5 setup |
| Webhook UUID | AlgoWayWS-MT5 EA inputs | Correct UUID from AlgoWay dashboard |
| Connection status | MT5 Experts log | EA connected and receiving messages |
| Webhook payload | AlgoWay logs | Valid JSON received |
| Broker permission | Broker account / MT5 server response | Trading and EA trading allowed |
Do not confuse MT5 Error 4752 with AlgoWay webhook Error 415.
| Error | Where it happens | Main cause |
|---|---|---|
| 4752 | MetaTrader 5 | EA trading is disabled or prohibited. |
| 415 | Webhook/API layer | TradingView sent invalid JSON or wrong content type. |
If AlgoWay does not receive the alert correctly, fix the webhook JSON first. If AlgoWay receives the alert and MT5 rejects execution with 4752, fix MT5 algo trading permissions.
Webhook format guide: How to fix AlgoWay webhook Error 415.
Error 4752 and Error 4756 are also different.
So if the issue is 4752, first check permissions. If the issue is 4756, check symbol, lot size, filling type, market session, stops, and broker rules.
Common errors hub: MetaTrader 5 common errors in AlgoWay.
After fixing MT5 permissions, send a safe test message before using your full strategy alert.
{
"platform_name": "metatrader5",
"ticker": "EURUSD",
"order_contracts": 0.01,
"order_action": "buy"
}
For a TradingView strategy alert, you can use placeholders:
{
"platform_name": "metatrader5",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}"
}
Confirm the test in both places:
Many traders see Error 4752 only after they connect TradingView alerts to MetaTrader 5. That makes it feel like a TradingView problem. In reality, TradingView only starts the automation chain. The actual 4752 rejection happens inside MetaTrader 5 when the EA attempts to trade.
This is why AlgoWay separates the layers:
Error 4752 belongs to the MetaTrader 5 EA permission layer.
After enabling Algo Trading and EA permissions, do not return immediately to full-size live automation. Retest the chain with the smallest practical order size and a simple payload. The goal is to prove that MetaTrader 5 now allows EA execution before you reconnect the full TradingView strategy.
This procedure is useful for both demo and live accounts. It is also useful after a VPS restart, MT5 update, broker server change, account switch, profile change, or reinstall of the AlgoWayWS-MT5 EA. MetaTrader 5 can disable algorithmic trading after certain changes depending on terminal settings, so a route that worked yesterday can suddenly show Error 4752 today.
Many AlgoWay users run MetaTrader 5 on a VPS or cloud desktop so the terminal stays online while TradingView alerts continue to fire. Error 4752 can still appear in that environment. A VPS does not automatically guarantee that algorithmic trading is enabled. After a Windows update, terminal restart, broker reconnect, RDP session change, or migration, the MT5 toolbar and EA permissions should be checked again.
For a VPS-based TradingView to MT5 webhook setup, the minimum healthy state is:
If any of these checks fail, the webhook route may be correct but MT5 execution can still fail. That is why Error 4752 pages should be part of every MT5 automation troubleshooting cluster, together with JSON errors, broker rejection errors, symbol mapping guides and AlgoWayWS-MT5 installation manuals.
If you searched for MT5 Error 4752, AutoTrading disabled by client terminal, Trading by Expert Advisors prohibited, Algo Trading disabled MT5, TradingView to MT5 no trade opened, or AlgoWayWS-MT5 EA not placing orders, the core answer is the same: MetaTrader 5 is blocking automated trading. Fix the permission layer first, then test the webhook route again.
AlgoWay can help you identify where the chain fails because webhook logs show whether the signal arrived and MT5 logs show whether the EA was allowed to execute. The clean troubleshooting path is not guesswork. It is layer-by-layer verification from TradingView alert, to AlgoWay webhook, to AlgoWayWS-MT5 EA, to MetaTrader 5 execution permission, to broker server response.
MT5 Error 4752 means MetaTrader 5 is blocking Expert Advisor trading. In most AlgoWayWS-MT5 cases, the fix is to enable Algo Trading globally, allow algorithmic trading in MT5 options, allow the specific EA to trade on the chart, and confirm logs after the next test signal.
If the TradingView alert reaches AlgoWay but MT5 returns 4752, do not rewrite the TradingView strategy first. Fix the MT5 execution permission layer first.