MT5 errors such as Market Closed, Trade Disabled, and Not Enough Money describe different reasons a trade request could not be completed. They are not generic signs that MetaTrader 5 is broken. Market Closed usually points to the trading schedule for the selected instrument. Trade Disabled points to a trading permission or symbol restriction. Not Enough Money usually means the account does not have enough available margin for the requested order under current conditions.

The fastest way to solve these errors is to identify which layer rejected the request: the market session, the symbol or account permissions, or the account's available margin. That distinction prevents common mistakes such as reinstalling MT5 for a broker-side restriction or depositing more money when the real problem is that the instrument is outside its trading session.

What the main MT5 errors mean

MetaTrader 5 sends trade requests to the trading server and receives a result. In the official documentation MetaQuotes identifies return code 10017 as Trade Disabled, 10018 as Market Closed, and 10019 as No Money. These codes matter because they show that the server has classified the failure rather than simply failing to process an unknown request.

MT5 messageTypical meaningFirst thing to check
Market ClosedThe instrument is not currently in an allowed trading sessionSymbol trading hours and holidays
Trade DisabledTrading is not permitted for that symbol or account in the requested wayAccount access and symbol trade mode
Not Enough MoneyThe request would require more available margin than the account can supportFree margin and requested volume

These messages can appear after clicking Buy or Sell manually. They can also appear in the Journal or Experts tabs when an Expert Advisor sends an order. The appropriate fix depends on where the restriction exists. A manual order problem and an automated trading problem can look similar on screen while having different causes.

MT5 market closed: Why it happens

The MT5 Market Closed message means the trade request reached a point where the selected instrument was not open for trading. The key word is instrument. MT5 can remain connected and other symbols can still trade while one symbol is closed.

Trading schedules are symbol-specific. Forex pairs, stock CFDs, futures, indices, metals, and exchange-traded instruments may use different sessions. Some instruments also have intraday breaks. The official session functions documented by MetaQuotes expose the beginning and end of trading sessions for a symbol by day of the week. This is why assuming that every visible quote is continuously tradable can produce a Market Closed rejection.

Check the symbol schedule first

Open the symbol specifications in MT5 and review the trading sessions shown by your broker. Pay attention to server time rather than assuming the schedule matches your local clock. A symbol may also have different hours on Friday or around an exchange break.

If the market should normally be open but the message appears, consider whether a holiday or exceptional session applies. Exchange holidays and broker-specific session adjustments can shorten or suspend trading. A weekend is the obvious case for many forex instruments, but it is not the only one.

Quotes do not always mean trading is open

A price displayed in Market Watch does not by itself prove that a new trade can be opened at that moment. Quoting sessions and trading sessions can differ. You may also be looking at a last known price rather than a newly tradable price. For troubleshooting, use the instrument's trading session and the latest server status rather than the visual presence of a bid and ask alone.

What to do with pending orders

A pending order does not bypass market hours. Depending on the instrument and broker configuration, you may be able to place or modify some pending orders only during permitted sessions. Even when an existing pending order remains visible while the market is closed, execution still depends on the market reopening and the order conditions being met.

Why MT5 says trade disabled

MT5 Trade Disabled means the requested trading operation is not permitted. This is broader than Market Closed. The instrument might be open, connected, and receiving prices while new trades are still blocked.

MT5 exposes symbol trade modes that can allow full trading, only long positions, only short positions, closing only, or no trading at all. The official symbol properties documented by MetaQuotes distinguish these modes explicitly. That makes Trade Disabled a permissions problem first and a connectivity problem only secondarily.

Symbol trading can be restricted

A broker can make a symbol unavailable for opening new positions or restrict the allowed direction. A symbol may also be set to close-only. In a close-only state, closing an existing position can be permitted while opening a new one is rejected. This distinction is especially useful when Buy and Sell both fail but position-closing still works.

Do not assume that a symbol name appearing in Market Watch means it is enabled for every account. Brokers can apply different instrument availability across account types, servers, jurisdictions, or account states.

Account permissions can block trading

If many unrelated symbols suddenly produce Trade Disabled, inspect the account rather than each symbol separately. An account can be connected but not authorized to trade. One example is logging in with investor or read-only access. Trading can also be restricted at the server side.

Check whether the account is the intended trading account and whether you used the trading password rather than an investor password. Then look at the Journal for permission-related messages. If manual trading is disabled across the account, changing order size or switching charts will not solve it.

Trade Disabled is not the same as AutoTrading disabled

This distinction is important for Expert Advisors. MT5 has separate return codes for automated trading disabled by the server and automated trading disabled by the client terminal. Therefore an EA that cannot trade because algorithmic trading is switched off is not necessarily experiencing the same condition as server return code 10017.

If manual orders work but the EA fails, check the platform's algorithmic trading permission, the EA's own trading permission, and the account permission for Expert Advisor trading. If manual orders also fail with Trade Disabled, focus on account and symbol restrictions first.

How to fix MT5 not enough money

MT5 Not Enough Money means the trade request cannot be supported by the account under the applicable margin calculation. This does not simply mean the account balance is zero. An account can have a positive balance and still lack enough free margin for the requested position.

Margin is the amount of account resources reserved to support leveraged positions. Free margin is the part still available for additional exposure. Required margin depends on factors such as the symbol, requested volume, price, account settings, leverage, and the broker's margin rules. Existing exposure can also affect how much capacity remains.

Reduce the requested volume

The most direct test is to lower the order size. If a smaller volume is accepted, the original request was too large for the available margin or current margin rules. Do not treat the largest order the platform will accept as a sensible risk level. Passing a margin check only means the account can technically support the request at that moment.

Adding funds is not the only possible response and should not be treated as an automatic fix. If the requested exposure is larger than intended, reducing the trade can address both the platform rejection and the underlying risk. If the position size is intentional, verify the contract specification and margin terms before deciding whether the account should carry that exposure.

Check free margin rather than balance alone

Balance does not show the full effect of open positions. Floating profit and loss affects equity, while existing positions consume margin. A trader with a substantial balance can therefore receive Not Enough Money if current positions have already used most of the account's available margin capacity.

Review Balance, Equity, Margin, Free Margin, and Margin Level in the Trade tab. A sharp loss on open positions can reduce equity and free margin even when no funds have been withdrawn. Closing or reducing existing exposure may release margin, although the trading consequences and risk of doing so should be evaluated separately.

Why the same lot size can require different margin

A fixed lot size does not guarantee a fixed margin requirement across symbols or times. Instruments can have different contract specifications and margin rates. Account leverage can also differ from the assumptions a trader used when estimating position size. Some brokers change margin requirements around particular instruments or market conditions.

For automated systems, calculating the expected margin before sending a request can reduce avoidable rejections. MT5 provides margin calculation and order-check functions for this purpose. An EA should still handle a server rejection because conditions can change between a preliminary calculation and actual order processing.

A practical troubleshooting order for MT5 errors

Randomly changing platform settings can hide the real cause. Use a fixed diagnostic sequence instead. It is faster because each step rules out a different layer of the trading process.

  1. Read the exact message. Distinguish Market Closed, Trade Disabled, Not Enough Money, Price Off, Invalid Volume, and other server responses. Similar timing does not make them the same error.
  2. Confirm the terminal is connected. If there is no connection to the trading server, solve that first. A permission diagnosis is unreliable when the account is offline.
  3. Check whether the problem affects one symbol or many. One-symbol failures point toward session or symbol settings. Broad failures point more strongly toward the account, server permissions, or terminal state.
  4. Check the trading session. For Market Closed, compare current server time with the symbol's permitted trading hours and any holiday schedule.
  5. Check symbol permissions. For Trade Disabled, determine whether the symbol is fully tradable, directional, close-only, or disabled.
  6. Check account permissions. Verify that the login has trading rights and that the account is not operating in read-only mode.
  7. Check free margin and order volume. For Not Enough Money, compare the requested position size with available margin and current exposure.
  8. Check EA permissions separately. If manual trading works, investigate AutoTrading and EA-specific permissions rather than changing broker or account settings immediately.
  9. Review the Journal and Experts tabs. The exact return code or server message can reveal whether a visible popup has simplified the underlying reason.

Related MT5 errors that can look similar

Several MT5 errors can be mistaken for the three main messages because they all prevent an order from completing. Separating them avoids applying the wrong fix.

Message or conditionWhat it points toHow it differs
Price OffNo usable quote is available for the requestNot the same as a scheduled market closure
Invalid VolumeThe requested lot size does not meet symbol rulesChanging margin alone will not fix an invalid lot step or range
Invalid StopsStop Loss or Take Profit values violate symbol constraintsThe trade may be allowed but the attached levels are not
Autotrading disabledAn EA lacks permission to tradeManual trading may still work
No connectionThe terminal cannot communicate with the trade serverThe server cannot process a normal trade request until connectivity returns

For example, a trader who sees no new ticks may assume Market Closed, but the actual issue could be Price Off or a connection problem. Likewise, an EA that stops sending trades may appear to have Trade Disabled when algorithmic trading has simply been switched off in the terminal.

When an Expert Advisor keeps producing MT5 errors

An EA should treat trade errors as structured outcomes rather than retrying every failure immediately. Repeating the same request while a market is closed or a symbol is disabled creates noise and does not change the underlying condition.

For Market Closed, the EA can check the trading session before attempting a new order. For Trade Disabled, it can check symbol trade mode plus account and automated trading permissions. For Not Enough Money, it can estimate required margin and reject an oversized signal before sending it to the server.

Retry logic should also distinguish temporary conditions from persistent restrictions. A price update may resolve a transient quote problem. A closed session requires waiting until an allowed session. A disabled account or symbol usually requires a permission change rather than another immediate request. A margin failure requires less exposure, a smaller trade, or more available account resources.

Developers should log the server return code, symbol, requested volume, order type, and relevant account state when a request fails. That creates a usable diagnostic record without relying on a generic message shown later by the interface.

When to contact your broker

Contact the broker when the platform evidence points to a server-side rule that you cannot change locally. Useful examples include a symbol showing disabled or close-only unexpectedly, an account that has lost trading permission, or a session schedule that conflicts with the broker's published hours.

Provide the account server name, symbol, approximate server time of the failed request, exact error text or return code, and whether the problem affects manual trading, automated trading, or both. Do not send passwords or other authentication secrets.

For Not Enough Money, ask the broker to explain the symbol's current margin requirements if your own calculation does not match what the server requires. Margin rules are account-specific enough that a generic calculator may not reproduce every server setting.

How to prevent repeat MT5 errors

Most recurring MT5 errors become easier to manage when trading rules are checked before the order is sent. Manual traders can review symbol specifications, trading hours, account status, and free margin before increasing exposure. Automated systems can perform the same checks programmatically and stop sending requests when the required conditions are not met.

  • Use the exact server message rather than guessing from what the chart looks like.
  • Check symbol trading hours using server time.
  • Confirm whether a symbol allows full trading or only limited operations.
  • Verify account trading rights after changing credentials or servers.
  • Separate manual trading permissions from Expert Advisor permissions.
  • Estimate margin before sending large or unusual orders.
  • Keep a margin buffer rather than sizing trades to the maximum technically accepted volume.
  • Log error codes so repeated failures can be classified instead of rediscovered.

The core diagnostic rule is simple: Market Closed is primarily a session problem, Trade Disabled is primarily a permission problem, and Not Enough Money is primarily a margin problem. Start with that classification, confirm the relevant MT5 status, and change only the setting or trade parameter connected to the actual rejection.