Collective TP SL manager
- Утилиты
- Minh Vuong Pham
- Версия: 2.0
Collective TP Manager v2 is a MetaTrader 5 Expert Advisor designed to automatically manage the collective Take Profit and Stop Loss of multiple open positions on a single symbol. Instead of setting individual TP/SL for each order, this EA monitors the combined profit/loss of all (or filtered) positions and takes action when your targets are reached.
1.1 Why You Need This EA
In modern trading, especially scalping and multi-EA environments, manually tracking the net profit of dozens of positions is impractical and error-prone. This EA solves critical problems that every active trader faces:
The Scalping Challenge
Scalping demands split-second decisions. When you are running 5–20 rapid-fire trades in quick succession, you simply cannot calculate combined profit in real time. A single moment of hesitation can turn a winning session into a losing one. This EA continuously monitors your collective P&L and closes all positions the instant your dollar target is hit — no delays, no emotions, no missed exits.
The Multi-EA Problem
Many traders run multiple Expert Advisors simultaneously on the same symbol — one for trend-following, another for mean-reversion, and perhaps a grid or martingale strategy. Each EA manages its own orders independently, but none of them knows about the combined exposure. Without a centralized profit manager:
• One EA may keep adding positions while the account is already in deep drawdown from another EA.
• Your total profit may have already exceeded your daily target, but individual EAs keep trading.
• A sudden market reversal can wipe out gains across all strategies before any single EA reacts.
Collective TP Manager acts as your central risk controller, watching the big picture and stepping in when it matters most.
Real-World Scenarios
| Scenario 1: Scalping Session You open 12 quick Buy trades on EURUSD during a news spike. Some are +$3, some are -$1. Net profit hits your $10 target → EA instantly closes ALL 12 positions. Without the EA, you would still be manually calculating while the market reverses. |
| Scenario 2: Multi-EA with Drawdown Protection EA-1 (Grid) has 8 Buy orders at -$45. EA-2 (Scalper) has 3 Buy orders at +$20. Combined loss = -$25. Your drawdown limit is 2% of balance. Collective TP Manager detects the threshold breach and closes everything — saving your account. |
| Scenario 3: Buy/Sell Separation You have a hedge setup: 5 Buy orders and 5 Sell orders on GBPUSD. You want to take profit only on Buys when they collectively reach +$15. Set ManageMode = Buy Only. The EA closes only the Buy side and leaves Sells untouched. |
1. Copy the file Collective_TP_Manager_v2.mq5 into your MT5 data folder: MQL5/Experts/
2. Restart MetaTrader 5 or right-click the Navigator panel and select Refresh.
3. Drag the EA onto the chart of the symbol you want to manage.
4. In the popup dialog, go to the Inputs tab and configure your parameters (see Section 3).
5. Make sure "Allow Algo Trading" is enabled (the green icon in the toolbar).
| Important The EA only manages positions on the symbol of the chart it is attached to. You can attach separate instances to different charts for multi-symbol management. |
