MetaTrader 5 Integration
How Cortiq Connects To MT5
Section titled “How Cortiq Connects To MT5”Cortiq is built around MetaTrader 5. It runs as a local Windows desktop application and communicates with MT5 on the same machine for pricing, account state, orders, and trade management.
This is not a generic broker connector. The supported execution path is MetaTrader 5.
Who This Is For
Section titled “Who This Is For”This page is for users who want to:
- trade live through Cortiq
- understand how Cortiq reaches their broker environment
- run one or more MT5 accounts from the same machine
- confirm their execution setup before enabling real orders
Where To Find This In The App
Section titled “Where To Find This In The App”The main MT5 connection screen is:
Settings->MT5 Accounts
That is the part of the app where you manage terminal connections before you build live sessions.
What The Integration Handles
Section titled “What The Integration Handles”| Area | Cortiq Role |
|---|---|
| Market data | Reads price and candle updates from the connected MT5 environment |
| Account context | Uses account information such as balance, equity, margin, and symbol properties |
| Order flow | Places market and pending orders when a session is allowed to execute |
| Position management | Modifies stop loss and take profit, performs closes, and handles management actions |
| Monitoring | Tracks health and session status so trading can pause cleanly on connection or risk events |
Setup Expectations
Section titled “Setup Expectations”For a reliable MT5 setup, prepare the following:
- An installed MT5 terminal on the same Windows machine
- A configured MT5 account in Cortiq
- Correct terminal executable path and data folder path where required
- Unique communication ports per MT5 account in multi-account setups
Multi-Account Support
Section titled “Multi-Account Support”Cortiq supports multiple MT5 accounts, but each connected terminal must use its own port pair.
Example pattern:
- Account 1: command port
5555, data port5556 - Account 2: command port
5557, data port5558
The point is not the exact numbers. The point is that each connected account must have a non-conflicting communication pair.
Operational Guidance
Section titled “Operational Guidance”Use this checklist before enabling live execution:
- Confirm MT5 is installed and can open normally.
- Confirm Cortiq is pointing to the correct MT5 environment.
- Confirm the target account is the intended one for the session.
- Confirm risk settings are configured before the first live trade.
- Start with a narrow session scope or virtual mode before scaling.
In normal day-to-day use, the flow is usually:
- Configure the terminal in
Settings->MT5 Accounts. - Create or edit the runtime workflow in
Library->Sessions. - Review account-wide protection in
Tools->Risk Management.
What To Avoid
Section titled “What To Avoid”- Do not assume MT4 or non-MT5 brokers are supported.
- Do not run live trading without first confirming the account mapping and session target.
- Do not treat multi-account setups as plug-and-play without checking port separation.
Best Use Cases
Section titled “Best Use Cases”Use the MT5 integration layer when you want:
- a local desktop trading workflow instead of a cloud broker bridge
- direct access to account state, pricing, and order management on the same machine
- one execution path for both autonomous sessions and advanced external-agent workflows