Error 4752 and TradingView Alert

At first glance, there seems to be no connection. TradingView is one of the most reliable cloud trading platforms available. However, once alerts leave TradingView and travel through connectors into MetaTrader 5, the final execution depends entirely on MT5 terminal permissions. That is exactly where Error 4752 appears.

This article explains what MT5 Error 4752 means, why it commonly appears when TradingView alerts are automated through a connector, and exactly which MetaTrader 5 settings must be enabled to allow execution.

The real path: TradingView alert → connector → MT5 EA → trade

In automated trading setups the execution pipeline normally looks like this:

  • Your strategy triggers in TradingView
  • TradingView sends a webhook alert
  • A connector such as AlgoWay receives the alert
  • An Expert Advisor in MetaTrader 5 receives the signal
  • The EA attempts to place or modify a trade

Everything may appear to work correctly until the final step. The signal reaches MetaTrader 5, but the order request is rejected with a single line in the terminal logs: Error 4752.

What Error 4752 means in MetaTrader 5

Error 4752 corresponds to the MetaTrader code:

ERR_TRADE_DISABLED

In practical terms it means only one thing: trading by Expert Advisors is disabled.

This is not a TradingView issue, not a connector outage, and not a webhook transport failure. It is a restriction inside the MT5 terminal that blocks automated trading. Manual orders may still work normally, which is why this error often confuses users.

Why it appears when TradingView alerts are automated

When trades are placed manually, MetaTrader 5 only verifies whether the account is allowed to trade the symbol. When alerts are automated, the final order is executed by an Expert Advisor, and MT5 applies an additional layer of permissions.

This is why the pipeline frequently looks like this:

  1. TradingView alert sent ✓
  2. Connector received it ✓
  3. EA received the signal ✓
  4. Order request rejected ✗ → Error 4752

Main reasons behind Error 4752

Error 4752 almost always comes from one of these MetaTrader configuration points:

  • Algo Trading / AutoTrading is OFF on the MT5 toolbar
  • Algo trading disabled in MT5 settings under Tools → Options → Expert Advisors
  • The EA itself is not allowed to trade on the chart where it is attached
  • Less commonly: MT5 automatically disabled algo trading because of “Disable Algo Trading when…” options

Fix #1: Enable Algo Trading on the toolbar

The first setting to verify is the global automation switch.

  1. Look at the MT5 toolbar.
  2. Find the button labeled Algo Trading or AutoTrading.
  3. If the button is grey, click it once to enable it.

If the global automation button is disabled, every EA inside the terminal is blocked regardless of connector status.

Fix #2: Allow Algo Trading in MT5 Options

  1. Open Tools → Options.
  2. Select the Expert Advisors tab.
  3. Enable Allow Algo Trading.
  4. Review the settings labeled Disable Algo Trading when....
  5. Uncheck any options that may disable automation after account, profile, or symbol changes.

Once this is done, test the alert again and check the terminal logs.

Fix #3: Allow trading for the specific EA

This is one of the most common causes. The terminal may allow algo trading globally, but the EA itself may still be blocked on the chart.

  1. Open the chart where the EA is attached.
  2. Press F7 or open Expert Advisors → Properties.
  3. In the Common tab enable:
  • Allow Algo Trading
  • Allow live trading
  • Allow DLL imports if required by your EA

Where to confirm the error

When Error 4752 occurs, MetaTrader logs always contain the exact reason.

  1. Open the bottom terminal panel.
  2. Check the Journal tab.
  3. Check the Experts tab.
  4. Search for lines containing 4752.

Typical messages include:

Trading by Expert Advisors prohibited
AutoTrading disabled by client terminal

30-second checklist

If you need to resolve the problem quickly, verify these four items:

  1. Toolbar: Algo Trading is ON
  2. Options → Expert Advisors: Allow Algo Trading is ON
  3. Chart → F7: Allow Algo Trading / Live trading is ON
  4. Logs: no more “trading prohibited” messages

Conclusion

The connection between TradingView alerts and Error 4752 is not that TradingView failed. The alert simply triggers an automated execution path, and MetaTrader 5 may block that path if algo trading permissions are disabled.

Error 4752 is MetaTrader saying: Expert Advisors are not allowed to trade. The fix is almost always located in three places: the global Algo Trading button, MT5 Expert Advisor settings, and EA permissions on the chart.