Emergency Close All Positions Button
- Utilità
- Leon Mackintosh
- Versione: 1.0
Emergency Close All is a one-click panic exit utility for MetaTrader 5 — designed for traders who need to exit the market instantly during volatile events, news shocks, or unexpected price moves.
Drop it on any chart alongside your existing EA or manual strategy. It runs independently and never interferes with other scripts or advisors.
Features:
🚨 Big Panic Button — A large, high-visibility close button directly on the chart. One click (or two with confirmation enabled) closes all matching positions immediately.
🔒 Confirmation Safety Mode — Optional two-click confirmation with a 5-second countdown prevents accidental triggers. Disable it for true one-click instant exit.
🎯 Smart Close Filters — Switch filter mode directly from the panel without opening the inputs window:
- Close All positions
- Close BUY only
- Close SELL only
- Close by Symbol
📊 Live Position Readout — See exactly how many trades match your active filter and their combined floating P/L before you close.
📋 Pending Order Cancellation — Optionally cancel all pending orders at the same time as closing positions.
✅ 3-Attempt Retry Logic — Each position close retries up to 3 times with automatic fill mode detection, maximising execution reliability under fast market conditions.
🌍 Multi-Currency Account Support — Automatically detects your account currency and displays the correct symbol (£, $, €, ¥, A$, C$, CHF and more).
Fully collapsible. Works on any symbol, any timeframe, alongside any EA. No configuration required — attach and it's ready.
💬 Enjoyed this tool? Please take 30 seconds to leave a rating and review. Your feedback directly shapes future updates — requested features get prioritised based on what the community asks for. Every review helps other traders find this tool and keeps development active. Thank you for your support! 🙏