Skip to content
All library documents

Managing Remote MetaTrader Accounts Through Google Sheets

Article MQL5 code base

Summary

The document describes a MetaTrader 5 expert advisor that connects an account to a Google Sheets dashboard through a Google Apps Script web app. It pushes account balance, equity, margin, and open-position details to the sheet, then polls a Commands tab for account-specific instructions such as closing positions or changing stop losses. The system sends execution feedback and completion status back to the spreadsheet. Its stated aim is remote monitoring and management from a mobile browser without logging into a virtual private server; it does not depend on a particular symbol or timeframe.

The article outlines polling intervals and the setup steps needed to allow web requests in MetaTrader and deploy the spreadsheet backend. It provides code for creating dashboard and command tabs, routing updates, returning pending commands, and acknowledging completion. It does not report tests, reliability measurements, or security review. The design depends on external services, account and command authentication, and timely polling, so operational behavior and safeguards are not established by the document.

Key ideas

  • The utility sends MetaTrader account and open-position data to a Google Sheets dashboard.
  • It retrieves pending trade-management commands from a spreadsheet and reports their outcomes.
  • Separate polling intervals control data updates and command checks.
  • The integration requires MetaTrader web-request access and a deployed Apps Script backend.
  • The document describes implementation but provides no reliability or security evaluation.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.