Technical Requirements Specification: MT5 Selective Trade Copier EA 1. Project Title Custom MT5 Expert Advisor for Selective Copy Trading with Profit/Loss Alerts. 2. Project Objective To develop a reliable and efficient Expert Advisor (EA) for MetaTrader 5 that copies trades from a single "master" account to one or more "slave" accounts. The copying logic is selective: it only copies trades that are already in profit and belong to a specific list of symbols. The EA must also provide real-time alerts for key events. 3. Core Functionality * Master & Slave Account Management: The EA must be able to connect to one master account and multiple slave accounts simultaneously within the same EA instance. Account credentials (login, password, server) must be configurable via the EA's input parameters. * Real-time Trade Copying: The EA will monitor the master account for open positions. When a position on a whitelisted symbol shows a floating profit (Profit > 0), the EA must immediately copy this trade to all configured slave accounts. * Symbol Filtering: The EA must only monitor and copy trades for a specific list of symbols (e.g., V100, Boom 1000, Crash 500, etc.). This list must be easily editable in the EA's input parameters. * Risk Management & Lot Sizing: The lot size for copied trades on slave accounts must be configurable. Options required: * Same lot size as master. * A fixed lot size. * A multiplier of the master's lot size (e.g., 0.5x, 2x). * Alert System: The EA must send push notifications to the MetaTrader 5 mobile app for the following events: * Positive Copy Alert: When a trade is successfully copied (because it turned profitable on the master account). * Loss Alert: When any open position on any slave account reaches a floating loss of -6% of the account's balance or equity (this needs to be a configurable option). The alert should trigger only once per position for this threshold. * Input Parameters: All key variables must be configurable via the standard MQL5 input window, including: * Master Account Credentials * Slave Account(s) Credentials (support for at least 5 slaves) * List of Allowed Symbols (comma-separated string) * Lot Sizing Mode & Value * Magic Number * Slippage 4. Recommended Technical Architecture For this project, a solution built entirely within the MQL5 environment is preferred for simplicity, low latency, and ease of maintenance. But im open to suggestions! Aspect Option 1: 100% MQL5 EA (Preferred) Option 2: MT5 + Python Bridge Latency & Reliability Native execution within the terminal; latency < 100ms; fewer points of failure. Adds an external communication layer (API/ZeroMQ); introduces extra latency and complexity. Deployment Complexity Simple: just install the EA on one MT5 terminal on a VPS. Requires installing MT5, Python interpreter, external libraries, and managing two separate processes. Development Cost/Time Lower. The pool of skilled MQL5 developers is large on the Freelance platform. Higher. Requires a developer skilled in both MQL5 and Python, increasing cost and time. Maintenance Straightforward. Only need to update the EA for new MT5 builds. More complex. Requires updates for MT5, Python libraries, and potential OS compatibility issues. Conclusion: The project must be delivered as a single, self-contained MQL5 Expert Advisor (Option 1) unless the developer can provide a compelling technical justification for an alternative architecture. 5. Key Deliverables 1. Full Source Code: The complete, commented .mq5 source file for the Expert Advisor. 2. Compiled File: The executable .ex5 file. 3. User Manual: A brief PDF document explaining how to install the EA, configure all input parameters, and understand its basic operation. 4. Support: A guarantee of bug fixes for a period of 30 days after the final delivery.