MT5 execution / connection checklist
MT5 error 10031 and the trade-server connection
When MT5 reports trade return code 10031, it is reporting no connection to the trade server. Check the MT5 instance running the Expert Advisor.
Check the host running the EA
Check the broker connection on the Windows computer or VPS running the EA and confirm it is connected to the intended trading account and server. A connected phone only confirms the phone's own MT5 session.
Compare the relevant records
On the Windows host, compare the approximate event time in Toolbox → Experts and Journal. For MetaTrader's built-in virtual hosting, check its VPS journal and Terminal and Experts entries. Desktop log times use the host's time zone; deal history uses the broker server's time zone. Align them before comparing events.
Reconcile the order after reconnecting
Check open positions and pending orders in Trade, and the Orders and Deals views in History. Match the request with the broker's records before considering another submission. A connection error alone does not establish whether a trade filled.
Get help from the TradeMaster community
TradeMaster Autobot can execute analyst signals on configured, running Windows/MT5. Join the Discord to ask setup questions, inspect dated bot-posted signal outcomes including losses, and read member reviews. New members get a 7-day signals and Autobot trial.
For help, type only the error code, approximate time and time zone, and the type of host running the EA.
Join TradeMaster Discord