Skip to content
All library documents

Building a MetaTrader 5 Web Manager with Account Data and Configuration

Article MQL5 articles

Summary

This installment extends a web application for managing multiple MetaTrader 5 terminals. It introduces a configuration file to replace hard-coded terminal paths and adds an API route intended to return information for one terminal, including account number, balance, profit, and equity. A Python integration library connects to the selected terminal, retrieves account information, and must be shut down after use. The application uses FastAPI routes and a browser interface, with plans for automatic page updates and improved layout.

The article describes a test setup using demo accounts and Expert Advisors, and outlines the manager’s architecture and implementation workflow. Its focus is operational software rather than trading methods, so it provides no evidence that the account display or manager improves trading performance. The project is presented as an early-stage tool; the author cautions that it lacks encryption, authentication, and access controls, and recommends running it only in a secure or local environment.

Key ideas

  • A configuration file makes terminal paths and other infrequently changed settings easier to manage.
  • A new API route can return information for an individual terminal instance.
  • The MetaTrader 5 Python library uses initialization and shutdown steps to communicate with a terminal.
  • The web manager is an early implementation and lacks built-in authentication, encryption, and access protection.

Tags

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