Skip to main content
Glama

metatrader-mcp-server

connect.md769 B
# connect(connection) 🚀 Connects to the MetaTrader 5 terminal and establishes a session. ## Parameters - **connection**: The connection object containing credentials and configuration. ## Returns - **bool**: `True` if the connection was successful, `False` otherwise. ## Raises - **ConnectionError**: If connection fails for any reason (initialization or login issues). ## How it works 1. Initializes the terminal. 2. Logs in using provided credentials. 3. Sets `connection._connected = True` if successful. ## Exceptions If initialization or login fails, the function raises a `ConnectionError` with a descriptive message. ## Fun Fact 😎 This function is your gateway to the world of MetaTrader 5! Make sure your credentials are correct before connecting.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ariadng/metatrader-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server