MMD Close Open Only
The free MMD Close All Open script for MT4/MT5 instantly flattens your exposure on a specific instrument. With one drag-and-drop action, it closes all open positions (BUY & SELL) on the active chart while preserving all pending orders, offering a quick way to exit the market without setup.
Product information

MMD Close All Open Positions Script
Instantly Close All Open Positions on the Current Chart with a Single Drag-and-Drop Action!
FREE Script for MT4 & MT5 Users: Download MMD Close All Open Positions from the "Tools" section on our website. Place it in your Scripts
folder and drag it onto a chart to use it instantly!
The MMD Close All Open Positions Script is a free, essential utility for traders who need to quickly "flatten" their exposure on a specific instrument. With a single drag-and-drop, this script immediately closes all open positions—both long and short—for the symbol on the active chart. It's the perfect tool for clearing your current trades before major news events, at the end of your trading day, or any time you need a clean slate without affecting your pending orders.
This script focuses on speed and simplicity, allowing you to manage your active risk without manually closing each position individually.
How to Use
- Download the script file from the "Tools" section on our website.
- In your MetaTrader terminal, go to
File > Open Data Folder
. - Place the downloaded script file into the
MQL5/Scripts
(for MT5) orMQL4/Scripts
(for MT4) folder. - Refresh your "Navigator" window in MetaTrader, or restart the terminal. The script will appear under the "Scripts" section.
- To execute, simply drag the "MMD Close All Open Positions" script from the Navigator and drop it onto the chart of the symbol whose open positions you wish to close.
The script will run once, close all applicable open positions for that symbol, and then remove itself from the chart. The action is instantaneous.
Key Features & Benefits
- Instantaneous Action: Immediately closes all open trades (BUY and SELL) on the specified symbol upon execution.
- Preserves Pending Orders: This script specifically targets only open positions, leaving all of your pending orders (Limit, Stop) untouched and active.
- Chart-Specific Focus: The script is context-aware and will only close positions for the specific symbol of the chart it is dropped on. Your positions on other symbols will not be affected.
- Zero Configuration: No input parameters to set. This tool is designed for pure speed and simplicity – just drag, drop, and you're done.
- Simple Drag-and-Drop Execution: The easiest and fastest way to flatten your exposure on an instrument in MetaTrader.
- Completely Free: A fundamental trade management tool available at no cost to all registered users.
Use with Caution: This script performs live trading operations (closing positions). The action is immediate and irreversible. It is highly recommended to test it on a demo account first to fully understand its function before using it on a live account.
No DLL Required: This script is self-contained and does not require the installation of any external DLL files.
If you have any questions related to this product or need assistance, write to the email address: support@magiconcharts.com.
We will be happy to answer your questions promptly.