FAQ — MetaTrader
EA errors and symbol alignment between TradingView and MT4/MT5.
On this page #
[Error:4752-10027] Trading by Expert Advisors prohibited : Autotrading disabled by client terminal #
This appears when MetaTrader blocks automated trading. Even if the EA is configured correctly, the platform rejects orders if autotrading is disabled globally or for the EA.
Why it happens #
- Global AutoTrading disabled — The Algo Trading (MT5) or AutoTrading (MT4) button in the toolbar is red/off.
- Platform options — In Tools → Options → Expert Advisors, “Allow algorithmic trading” is not checked.
- EA permissions — In the EA properties (right-click chart → Expert Advisors → Properties), on the Common tab “Allow Algo Trading” is not checked.
- Broker/account restrictions — Some brokers or prop accounts do not allow EAs; in that case there is no fix from configuration.
How to fix it #
- In the MetaTrader toolbar, turn on the Algo Trading button (green).
- Tools → Options → Expert Advisors: check Allow algorithmic trading → OK.
- Right-click the chart where the EA is attached → Expert Advisors → Properties → Common tab: check Allow Algo Trading → OK.
If the error persists after this, it is usually a broker or account-type limitation (e.g. prop firms that do not allow EAs). The only option is to use an account that allows automated trading.
[Error:4756-10014] Trade request sending failed : Invalid volume in the request #
The volume (lot size) sent does not meet the symbol’s rules in MetaTrader: minimum, maximum, or volume step defined by the broker.
What to check in MT #
In Market Watch → right-click the symbol → Specification. Check Contract size, Minimal volume, Maximal volume, Volume step. The lot you send must be within range and a valid multiple of the step.
Solution: Order_Size in the EA #
You can set the lot in the EA inputs so it always uses a valid value instead of the one from the alert:
- In MetaTrader, Navigator → Expert Advisors → double-click the TradeAdapter EA (or Properties on the chart).
- Inputs tab → Order_Size field.
- Enter a valid lot according to the symbol specification (e.g. 0.01, 0.10).
- OK.
This way the EA always uses that size and avoids the invalid volume error.
[Error:4756-10030] Trade request sending failed : Invalid order filling type #
The execution (filling) type used by the EA is not accepted by the broker for that symbol.
Solution #
In the Expert Advisor settings (Inputs), change Filling type to IOC. If IOC does not work, try the other available options until orders execute.
How to align TradingView and MetaTrader symbol to trade #
If the symbol you want to trade on MetaTrader does not match the one you use in TradingView, you have two options:
Option 1 — Set the TradingView symbol in the EA #
In MT4 and MT5, the TradeAdapter EA inputs include a field for the symbol coming from TradingView. MetaTrader will wait for signals with that symbol and execute them on the chart where the EA is attached.
Option 2 — Change the ticker in the alert message #
In the alert JSON, replace "ticker": "{{ticker}}" with "ticker": "XXX", where XXX is the symbol of the chart where the EA is attached in MetaTrader. Example:
{
"mt_trading_account": "100100100",
"order_type": "Market",
"platform": "metatrader",
"time": "{{timenow}}",
"ticker": "XXX",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.order.action}}",
"order_price": "{{strategy.order.price}}"
}
In this doc: Symbol alignment (TradingView ↔ MetaTrader).