Equity Expiration MT5
- Utilità
- Versione: 1.0
- Attivazioni: 5
A time-based position expiration system that moves trades to a "watch list" after they reach a certain age. It does not close them immediately but waits for them to hit a profit target (or loss target) before exiting.
Features:
Global and Magic-specific expiration periods (format: HH:MM:SS).
Tracks expired trades separately and only closes them when a `MIN_PROFIT_CLOSE` target is met (or loss target if "Close Only Profitable" is false).
Includes a manual control and statistics reporting functions (`GetExpiredOrdersSummary`, `ForceCheckExpired`).
Can also delete pending orders on expiration.
Effective Uses:
Aging Off Trades: Force a trade to close only after 30 days if it hasn't hit its target, but only if it becomes profitable.
Scalping Expiration: For a scalping EA, use a short Magic expiration (e.g., 60 minutes). If a trade isn't closed in profit by then, this EA will wait for it to hit a small profit target before exiting.
Capital Preservation: Prevent trades from staying open indefinitely and tying up margin.
