Tâche terminée
Spécifications
Hi,
I want to create an Expert Advisor (EA) that will seamlessly maintain hedge positions between two different trading accounts. The main goal of this EA is to detect, link, and maintain synchronization between these two accounts, ensuring that trading positions in both accounts are consistently hedged.
A, I will open positions on accounts manually. EA WILL NEVER OPEN NEW POSITIONS.
B. EA will map the positions between those two accounts.
C. Automatically trigger the closure of a position in Account B when a position is closed in Account A, and vice versa.
Here are the key functionalities that I need in this EA: (Detailed Explanation)
1. Dual Account Monitoring & Mapping:
· Continuously monitor open positions in both trading accounts.
· Identify and establish connections between corresponding trades in both accounts.
2. Position Closure Synchronization:
· Automatically trigger the closure of a position in Account B when a position is closed in Account A, and vice versa.
3. Partial Closing Compatibility:
· Recognize and support partial closings.
· If a partial position is closed in one account, close an equivalent partial position in the other account.
4. Mismatched Lot Size Resolution:
· Address discrepancies in lot sizes between Account A and Account B.
· Close surplus lots in the account with the larger position to maintain identical positions in both accounts.
5. Suffix & Prefix Symbol Recognition:
· Adapt to symbol notation variations, including suffixes and prefixes used by some brokers.
6. Intuitive Dashboard Display:
· Design an intuitive dashboard to visualize trading activities, exposure, and relevant trade details.
· Display information like "Account A: 0.50 EURUSD Sell Mapped with Account B: 0.50 EURUSD BUY."
· Provide real-time updates, such as "Last heartbeat: 1:15:05," to indicate an active connection between the two accounts.
· Include other useful features to enhance the user experience.
The primary purpose of this EA is to consistently hedge trading positions across both accounts, thereby minimizing risks. It's important to note that the EA will not initiate new positions but will focus on managing and synchronizing existing ones.