MT5 error 10018: Market is closed
MT5 reports trade return code 10018, “Market is closed”. The market for the symbol was closed when the command ran.
Symptom
Section titled “Symptom”The command shows Failed in Command History, and hovering it shows “Market is closed”. Alerts that fire at the weekend or outside the symbol’s trading hours can end up here.
Causes, most likely first
Section titled “Causes, most likely first”- The symbol is outside its trading session, for example at the weekend or during a daily break.
- The broker has closed trading for this symbol.
- Check the symbol’s trading hours with your broker and schedule the alert inside them.
- Send the command again when the market is open. A failed command is not retried by ZB Connector.
Confirm it is fixed
Section titled “Confirm it is fixed”During trading hours, send the command again on a demo account. It is not marked Failed.
Still stuck?
Section titled “Still stuck?”With these items we can find the failing step quickly. Collect them before you write.
- The number of the first checkpoint that failed and the time of the alert, with your time zone.
- The row from TradingView's alert log, including the Webhook status column.
- The row from Command History (License Details page): status, time, and the reason shown when you hover Failed.
- The last lines of the MT5 Experts log around that time.
- Your alert message as TradingView sends it.
Always remove: your license key (write YOUR_LICENSE_KEY), passwords, and any screenshot where the EA panel shows the key.
Write to support with this checklist filled in(contact@zb-connector.com).
Related
Section titled “Related”Verified for EA v1.9 · dashboard 2026-10-05 · reviewed by Claude Code (owner review pending)
Trading involves substantial risk of loss. ZB Connector is software only; it does not provide investment advice, signals or brokerage services.