TradeOrchestrator
- Utilità
- Lucas Engels
- Versione: 1.0
- Attivazioni: 20
TradeOrchestrator — Multi-EA Drawdown Guard
No indicators. No complex logic. Pure protection.Overview
TradeOrchestrator is a lightweight risk management supervisor that runs alongside your other Expert Advisors.
It watches a designated EA's floating drawdown in real time and, when a configurable threshold is breached, automatically cancels the pending orders of a second EA to prevent it from adding new market exposure during a losing period.
How It Works
- Monitor — TradeOrchestrator scans all open positions belonging to your primary EA (identified by magic number) and calculates their combined floating P&L as a percentage of account balance.
- Arm — The moment that drawdown percentage crosses your threshold, the guard arms itself and begins acting.
- Block — While armed, every pending order placed by the secondary EA (identified by its own magic number) is deleted on each tick, preventing it from opening new trades.
- Disarm — Once the monitored EA has fully closed all its positions, the guard disarms automatically and normal operation resumes.
Key Features
- Magic-number based — Works with any EA without touching its source code
- Cross-symbol monitoring — Tracks all positions across all symbols for the monitored magic
- Configurable threshold — Set the exact drawdown % that triggers protection (or disable by setting 0)
- Automatic reset — Self-disarms cleanly when the drawdown situation resolves
- Zero interference when idle — Adds no overhead to normal trading conditions
Inputs
| Parameter | Description |
|---|---|
| Monitor Magic | Magic number of the EA to watch for drawdown |
| Arm Threshold % | Equity drawdown % that triggers the guard (0 = disabled) |
| Cancel Magic | Magic number whose pending orders are cancelled while armed |
Typical Use Case
You run two EAs simultaneously — one aggressive grid or martingale system and one trend-following EA.
When the grid enters a deep drawdown, you don't want the trend EA adding pending positions that potentially can compound DD.
Attach TradeOrchestrator to any chart, point it at both magic numbers, and it handles the coordination automatically.
Notes
- Attach to any chart — symbol does not matter
- Compatible with any broker and account type
- Requires no special permissions beyond standard trade access
- Tested on MetaTrader 5 build 4000+
- This EA only cancels pending orders, it will never close any open order
