Skip to main content

MT5 Market Closed: Symbol Sessions, Holidays and Server Time

The MT5 'Market Closed' error isn't a glitch—it's a deliberate session limit. Learn how to navigate quote versus trade sessions to prevent rejected orders.

Raj Krishnamurthy

14 min read

MT5 Market Closed: Symbol Sessions, Holidays and Server Time Watch the video

This article

8sections 14min

  1. 01 What You'll Learn, minute 1, about 1 min
  2. 02 Why Does MT5 Say Market Closed When Charts Are Ticking?, minute 2, about 2 minMT5 throws a Market Closed error because it separates the hours when prices update from the hours when you are actually allowed to trade.
  3. 03 How Does MT5 Server Time Work Across Different Time Zones?, minute 4, about 2 minMost retail MT5 brokers align their servers to Eastern European Time (GMT+2 or GMT+3) to ensure the daily candle closes exactly at 5:00 PM…
  4. 04 When Do Forex, Gold, and Indices Actually Close on MT5?, minute 6, about 2 minWhile spot forex trades 24/5 without interruption, commodities and indices enforce daily maintenance breaks where trading is strictly…
  5. 05 How Do Bank Holidays and Early Closes Impact MT5 Execution?, minute 8, about 2 minBank holidays and early market closes drastically alter standard MT5 trade sessions, causing unexpected mid-week trading halts and severe…
  6. 06 Preventing MT5 Market Closed Errors in Expert Advisors, minute 10, about 2 minYou can prevent Market Closed errors in automation by programming your Expert Advisor to verify the active trade session before executing…
  7. 07 Conclusion, minute 11, about 2 minThe MT5 'Market Closed' error is not a platform glitch; it is the deliberate enforcement of trade session limits by the broker's liquidity…
  8. 08 Frequently Asked Questions, minute 13, about 1 minTrade Return Code 10018 (TRADE_RETCODE_MARKET_CLOSED) is an error generated by the MT5 server. It means your request to open, close, or…

Listen to this article

Also on Apple Podcasts

Listen (audio)

The MT5 "Market Closed" error (Trade Return Code 10018) occurs when an order is sent outside an asset's active trade session. Even if prices tick during an active quote session, order execution is rejected until the broker's trade session opens according to its server schedule.

You line up the perfect breakout trade, click "Buy," and immediately get slapped with a pop-up: Market Closed. But wait—the chart is still ticking. The candles are moving. How can the market be closed when the price is clearly live? This frustrating scenario catches countless traders off guard. It is not a platform glitch; it is a fundamental architectural rule in MetaTrader 5. Let's break down exactly why this happens and how you can stop it from ruining your setups.

What You'll Learn

Why Does MT5 Say Market Closed When Charts Are Ticking?

MT5 throws a Market Closed error because it separates the hours when prices update from the hours when you are actually allowed to trade.

The 10018 Return Code Explained

When you click buy or sell, your terminal sends an execution request to your broker's server. If the current server time falls outside the permitted trading window for that specific asset, the server bounces the request back with Trade Return Code 10018. This code explicitly means the trade server rejected an order, modification, or trailing stop because the trade window is inactive.

A clear screenshot of the MT5 'Specification' popup window for a selected asset
A weekly schedule comparing MT5 quotes sessions and trade sessions across trading days and weekend closures.

Quote Sessions vs. Trade Sessions in MT5

Unlike older platforms that group pricing and execution together, MetaTrader 5 strictly separates them:

  • Quote Sessions: The hours when the broker's liquidity providers stream live price data. Your charts will paint new candles, and the bid/ask lines will move.
  • Trade Sessions: The hours when the broker's clearing house actually accepts transactions.

During pre-market, post-market, or intraday maintenance intervals, a symbol can receive live data while trading is completely disabled. This is why your one-click trading buttons turn gray or return pop-up rejections even though the market looks "alive."

Checking Symbol Properties (Ctrl+U)

The exact daily schedule of Quote and Trade hours—down to the minute—is hardcoded into your terminal.

Pro Tip: Press Ctrl+U to open the Symbol Specification window. Select your asset and scroll down to the bottom. You will see a day-by-day breakdown of exactly when Quote and Trade sessions open and close.

If you are utilizing advanced scalping techniques on tick charts, knowing these exact minute-by-minute cutoffs is critical. A trade placed one second before the trade session officially opens will trigger an error.

How Does MT5 Server Time Work Across Different Time Zones?

Most retail MT5 brokers align their servers to Eastern European Time (GMT+2 or GMT+3) to ensure the daily candle closes exactly at 5:00 PM in New York.

Why MT5 Brokers Align to GMT+2 / GMT+3

If you look at the clock in your Market Watch window, you will likely notice it doesn't match your local time. The vast majority of brokers use a GMT+2 (winter) or GMT+3 (summer) server offset. This isn't random; it's a deliberate choice designed to synchronize with the New York institutional close.

The 5-Day Daily Candle Rule (New York 5:00 PM Close)

The global forex market effectively closes for the day at 5:00 PM New York time. By setting the server clock to GMT+2/GMT+3, midnight on the MT5 server perfectly aligns with 5:00 PM in New York.

This architecture produces exactly five 24-hour daily candles per week. If a broker used GMT+0, the daily candle would close at 7:00 PM New York time, leaving a tiny, redundant "Sunday candle" on the chart that ruins technical indicators. If you rely on higher-timeframe ranges and daily candle closes, this 5-candle structure is essential for clean analysis.

An infographic timeline diagram mapping typical MT5 broker server time (GMT+2 / GMT+3 EET) against major global financial
Major trading sessions are mapped against MT5 broker server time, highlighting daily rollover and peak liquidity overlap.

Daylight Saving Time (DST) Transitions and Local Time Shifting

Because the MT5 server is anchored to the US market close, seasonal Daylight Saving Time changes in the US and Europe cause session start times to shift by one hour relative to local client clocks in Asia, Europe, or the Americas.

Example: If you live in Tokyo, the New York open might be at 10:30 PM local time during the US summer, but it shifts to 11:30 PM during the US winter.

Always translate the platform server time to your local timezone to avoid premature order entries or missed session closes.

When Do Forex, Gold, and Indices Actually Close on MT5?

While spot forex trades 24/5 without interruption, commodities and indices enforce daily maintenance breaks where trading is strictly halted.

24/5 Spot Forex vs. Daily Commodity Maintenance

Spot Forex runs virtually uninterrupted from Sunday 5:00 PM New York to Friday 5:00 PM New York. Aside from the weekend, there are no intraday breaks. You can enter or exit a EUR/USD position at any hour of the day.

However, derivative contracts tied to centralized exchanges operate differently. They must pause for daily clearing and settlement.

The 60-Minute Settlement Break on Metals (XAUUSD)

Metals (XAUUSD, XAGUSD) and energies feature a mandatory daily 60-minute settlement maintenance break. As noted in the CME Globex standard continuous trading schedule, there is a daily halt from 4:00 p.m. to 5:00 p.m. CT.

During this hour (typically 23:00 to 00:00 server time), trades freeze. Even if macro headlines hit and the quote feed shows a massive price gap, you cannot execute, modify, or close a trade. Your stop-loss will not trigger until the trade session reopens, potentially resulting in severe slippage.

Cash Equity Indices (US500, NAS100) and Futures Rollover Halts

Cash equity indices observe specific exchange breaks and dividend/clearing cutoffs. For instance, the UK100 (FTSE 100) has specific trading hours tied to the London Stock Exchange, while US indices follow Wall Street halts.

Warning: Scalpers who enter positions right before a daily clearing halt risk getting caught in a high-spread holding pattern. When the market reopens, spreads are often drastically widened, which can instantly trigger a stop-out.

How Do Bank Holidays and Early Closes Impact MT5 Execution?

A structured visual schedule matrix comparing weekly trading hours, daily maintenance pauses
MT5 trading sessions, rollover pauses, and holiday closures are compared across forex, metals, and indices on GMT+2 server time.

Bank holidays and early market closes drastically alter standard MT5 trade sessions, causing unexpected mid-week trading halts and severe liquidity drops.

Global Holidays vs. Regional Market Shutdowns

Major international banking holidays—such as Christmas, New Year's Day, Easter, and US Thanksgiving—trigger tailored trading schedules across the board. Depending on the asset, trading might close early or halt entirely for the day.

Regional holidays, like Japan's Golden Week or UK bank holidays, cause localized symbol pauses. JPY pairs might experience extreme illiquidity, or the UK100 might be closed entirely, while the rest of your MT5 terminal continues functioning normally.

Thin Liquidity, Spread Expansion, and Mid-Week Closures

In the 30 to 60 minutes leading up to an early holiday close, liquidity drains from the market. Market makers pull their orders, causing spreads to widen dramatically.

Example: For illustration, if EUR/USD normally has a 0.5 pip spread, it might expand to 5.0 pips just before a Christmas Eve early close.

If you have a tight stop-loss, this spread expansion can trigger a stop-out just moments before execution halts. This is a classic trigger for boredom trading in flat markets, where traders force setups into illiquid conditions.

Broker Holiday Notices and Tracking Schedule Adjustments

Brokers issue holiday schedule bulletins via email or platform mailbox messages. Reviewing these notices is a mandatory best practice for planning multi-day swing positions. If you hold a trade into a holiday closure, your capital is locked until the specified reopening time.

Preventing MT5 Market Closed Errors in Expert Advisors

You can prevent Market Closed errors in automation by programming your Expert Advisor to verify the active trade session before executing an order.

Programmatic Checks Using SymbolInfoSessionTrade()

Unoptimized Expert Advisors (EAs) are notorious for repeatedly firing orders into closed sessions. If an EA ignores market hours, it will produce thousands of 10018 errors in the Journal tab. This clutters logs and can trigger automated server firewall bans from your broker for spamming the trade server.

When hiring an MQL5 developer, ensure they implement MQL5 functions like SymbolInfoSessionTrade() and SymbolInfoSessionQuote(). These functions verify that the active server time falls within tradeable parameters before the OrderSend() function is ever called.

// Example logic flow (not copy-paste code)
// Check if trade session is currently open
bool isTradeAllowed = SymbolInfoSessionTrade(Symbol(), day_of_week, session_index, from_time, to_time);
if(!isTradeAllowed) {
   Print("Execution skipped: Trade session is currently closed.");
   return;
}
A side-by-side view featuring an MQL5 code snippet in MetaEditor demonstrating the use of SymbolInfoSessionTrade to verify
MQL5 code checks trading sessions with SymbolInfoSessionTrade to skip order requests in the MT5 Experts terminal.

Preventing Server Log Spam and Automated Account Penalties

Handling trailing stops and break-even logic is equally critical. Trailing stop scripts run client-side (on your computer/VPS) or via EA logic. If price touches your trailing step during a quote session while the trade session is suspended, the modification request will fail.

Auditing EA Execution Timing and Trailing Stop Logic

To ensure clean exits, configure custom timing buffers in your trading bots. For example, program your EA to stop opening new executions 15 minutes before daily commodity breaks, and to pause trailing stop modifications until 5 minutes after the session reopens to avoid spread-widening spikes.

Conclusion

The MT5 'Market Closed' error is not a platform glitch; it is the deliberate enforcement of trade session limits by the broker's liquidity providers and clearing houses. Recognizing that market ticks can still stream through active Quote Sessions while execution remains locked in Trade Sessions prevents costly order errors and EA crashes.

By mastering the GMT+2/GMT+3 server offset, verifying daily maintenance breaks on commodities like XAUUSD, and embedding automated session checks into your MQL5 algorithms, you eliminate execution blind spots. Flexible brokers like FXNX provide transparent symbol specifications across the customizable NX Flex environment. Traders can tailor accounts from a 0.0 pip markup (the raw market spread still applies) up to 2.5 pips, with minimum deposits calculated from $10 to $10,000. You can also utilize swap-free trading for up to 14 days per position, and select leverage from 1:50 to 1:500, which can be changed later in the client portal. If a position stays open longer, the swap is charged for every night it was open, then daily until it closes.

Before placing your next trade near a session transition, press Ctrl+U in your MT5 terminal to inspect the exact Quote and Trade sessions for your primary trading assets: are you trading an open market, or are you executing against a closed gate?

Trading CFDs involves risk of loss; better terms do not change market risk.

Frequently Asked Questions

What is Trade Return Code 10018 in MT5?

Trade Return Code 10018 (TRADE_RETCODE_MARKET_CLOSED) is an error generated by the MT5 server. It means your request to open, close, or modify a trade was rejected because the market's designated trade session is currently closed.

Why is my one-click trading button grayed out?

Your one-click trading buttons turn gray when the asset is outside of its active Trade Session. Even if you see prices updating on the chart (an active Quote Session), execution is disabled until the trade window reopens.

How do I check the exact trading hours for an asset in MT5?

Press Ctrl+U to open the Symbol Specification window. Select your desired asset and scroll to the bottom to view the specific Quote Sessions and Trade Sessions for every day of the week, based on the platform's server time.

Do trailing stops work when the MT5 market is closed?

No. Trailing stops are managed client-side by your terminal. If the market trade session is closed, your terminal cannot send modification requests to the broker's server to move the stop-loss, even if the quote price changes.

End of article

General information and education, never investment advice.

CFDs are complex, leveraged instruments with a high risk of losing money rapidly. 64% of retail investor accounts lose money trading CFDs with this provider.

Written by Raj Krishnamurthy.

Head of Research

All articles by Raj
Publisher
FXNX Global Markets Ltd
Company
Saint Lucia 2025-00128
Published
October 16, 2026

Next step

Now practise it,
on a demo.

Open an account and practise with virtual money on live prices. No deposit, no ID.

$10,000
Demo balance, ready on your first visit. Or pick $1,000 or $100,000.

Demo results don't predict live results.