Termos de Referência
Overview
We require a robust MT4/MT5 integration layer to connect our existing web-based trading platform to users’ MetaTrader accounts. This layer will enable seamless, secure, and real-time interaction for:
-
Live broker price display in our web app
-
Order routing and execution via the user’s MT4/MT5 terminal
-
Real-time monitoring of open and closed positions
-
Live and historical (closed) profit & loss (P&L) tracking
The integration should be delivered as a well-documented, modular MVP, ready for demo/beta testing but architected to scale for future production use.
Key Requirements
1. MT4/MT5 EA/Plugin
-
Language: MQL4 and/or MQL5
-
Functions:
-
Connect to the user’s MT4/MT5 terminal and broker account.
-
Stream live price data and all account/position information (open and closed trades, real-time and historical P&L) to the backend or directly to the web app.
-
Receive and execute order instructions from the backend.
-
Report order status, execution, and errors back to the backend.
-
2. Backend Bridge/API Service
-
Language: Node.js, Python, Go, or similar (API-first, modular)
-
Functions:
-
Accept secure connections from EAs/plugins (per-user, with authentication/pairing).
-
Provide REST or WebSocket endpoints for the web app to:
-
Retrieve live prices for selected instruments
-
Display all open and recently closed positions
-
Show real-time and historical P&L
-
Submit trade orders for routing to the EA/terminal
-
-
Handle secure, real-time, bi-directional data flow between EAs and the web app.
-
Implement robust logging, error handling, and activity tracking.
-
3. Security & User Pairing
-
No broker credentials stored in the web app or backend.
-
Secure, per-user pairing between web app and EA (token, pairing code, or similar mechanism).
-
Encrypted communications (TLS or equivalent) at all points.
-
Activity is fully auditable for troubleshooting and support.
4. User Experience
-
Simple onboarding: Clear guides for EA/plugin installation and web app pairing.
-
Connection status: Display whether the user’s terminal is online and synchronized.
-
Live data: Trade ticket and account dashboard update in real time as data is received.
-
Error feedback: Orders, positions, and connection errors reported clearly to the user.
5. Scalability & Maintainability
-
All backend and API components are modular and ready for containerization/cloud deployment.
-
System designed for easy extension to multi-broker/multi-user production.
-
EAs/plugins and backend support update/upgrade workflows.
6. Documentation & Handover
-
Complete technical documentation: API specs, codebase, onboarding/install guides.
-
Clear handover plan for future team or vendor.
-
Recommendations for scaling to production and regulatory/compliance review.
Deliverables
-
MT4/MT5 EA/Plugin (MQL4/MQL5 source code + install guide)
-
Backend bridge/API service (with code, setup instructions, and API docs)
-
Onboarding/documentation pack (user install, pairing, troubleshooting, FAQ)
-
Integration with our existing web app (showing live prices, open/closed positions, real-time and closed P&L, order placement and confirmation)
-
Demo/test environment (using demo broker accounts)
-
Handover documentation for ongoing support and future production scaling
Milestones
-
Requirements/architecture finalized
-
EA/plugin developed, tested locally
-
Backend bridge/API developed and connected
-
Secure pairing and communication implemented
-
End-to-end integration tested (live data, orders, position/P&L reporting)
-
User onboarding and documentation completed
-
Demo/beta ready for internal and external test users
-
Project handover with all documentation
Preferred Experience
-
MQL4/MQL5 development for MT4/MT5
-
Secure backend API development (Node.js/Python/Go)
-
Experience with web-to-desktop integrations, authentication, and encrypted comms
-
Familiarity with FX/CFD trading and MetaTrader platform architecture
-
Documentation and UX sensitivity for onboarding/support
To Apply/Express Interest
Please provide:
-
Examples of similar MT4/MT5 integrations (especially EA↔API↔web app workflows)
-
Summary of relevant experience and approach to security/authentication
-
Availability and any questions on project requirements