MetaTrader 5 troubleshooting
How do you fix MT5 error 10017?
MT5 trade server code 10017 means trading is disabled for the request. Start by checking two things separately: whether the connected account can trade, and whether the exact broker symbol permits the operation. The Algo Trading switch alone cannot tell you either.
1. Check the account and login type
Confirm you are connected to the intended account and broker server. MT5 investor access can display prices and account data but cannot trade. If your login is supposed to allow trading, ask your broker whether the account has a trading restriction. An EA developer can log ACCOUNT_TRADE_ALLOWED for general trading permission and ACCOUNT_TRADE_EXPERT for automated trading permission. A broker can permit manual orders while blocking EAs.
2. Check the exact symbol in Market Watch
Right-click the symbol in Market Watch and choose Specification. Look at the Trade field. A symbol can be disabled, long-only, short-only, close-only or set to allow all directions. If you use an EA, check the symbol in the actual request, including the suffix. Changing a chart or opening a different symbol's order form may leave the original request unchanged.
Worked example. An EA submits to a broker's GOLD.old symbol and receives 10017. Quotes are still visible, but the symbol specification lists trading as disabled. The quote feed explains why prices appear. The symbol mode explains why the server did not accept the order. Confirm with the broker whether that exact contract is still tradable.
3. Use the actual code to pick the next check
MetaQuotes lists 10026 when the server disables automated trading and 10027 when the client terminal disables it. The separate 10044 code identifies a close-only restriction for an order that would open a position. A closed session has code 10018. Read the Experts or Journal message at the attempt timestamp before changing settings.
If the account and symbol look enabled yet the server returns 10017, ask broker support to confirm the exact restriction. Provide the symbol, order type, server-time timestamp and broker return message through the broker's private support route.
Frequently asked questions
Can I see prices if MT5 trading is disabled?
Yes. Investor access permits viewing and analysis, and a symbol can show quotes while its trading mode prohibits orders.
Is error 10017 always an Algo Trading setting?
No. Check both account and symbol permissions. Codes 10026 and 10027 identify restrictions specific to automated trading on the server or the client terminal.
Get help with the diagnosis
If you want help separating an account restriction from a symbol restriction, bring the symbol, return code and one sanitized log line. Keep logins and account IDs private.
Ask in TradeMaster Discord