MMD Close Long's On Symbol
The free MMD Close All Longs Script for MT4/MT5 is an essential tool for fast exits from long positions. With one drag-and-drop action, it instantly closes all open BUY positions AND deletes all pending buy orders (Limit, Stop, etc.) for the active symbol, perfect for strategy reversals.
Product information

MMD Close All Longs Script
Instantly Clear All Long-Side Exposure on a Chart with One Simple Action!
FREE Script for MT4 & MT5 Users: Download MMD Close All Longs 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 Longs Script is a free and highly effective tool for traders who need to quickly and completely exit their long positions on a specific instrument. When market dynamics shift or you decide to change your market bias, this script allows you to close all open long (BUY) positions AND delete all pending buy orders (Limit, Stop, Stop Limit) for the active symbol in a single, instantaneous step.
This comprehensive action ensures that no residual long exposure remains, giving you a clean slate to reassess the market or enter new positions. It's an essential utility for nimble and decisive trading.
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 Longs" script from the Navigator and drop it onto the chart of the symbol whose long positions and pending buy orders you wish to close.
The script runs once, performs its function comprehensively, and then removes itself from the chart. The action is immediate.
Key Features & Benefits
- Comprehensive Action: Not only closes all open long positions but also deletes all types of pending buy orders (Buy Limit, Buy Stop, Buy Stop Limit).
- Chart-Specific Focus: The script is context-aware and will only affect positions and pending orders for the specific symbol of the chart it is dropped on.
- Zero Configuration: No input parameters to set. This tool is built for maximum speed and ease of use.
- Ideal for Strategy Reversals: The perfect tool when you need to completely flatten your long exposure on an instrument before entering short or stepping aside.
- Simple Drag-and-Drop Execution: The fastest way to execute a complex series of closing and deleting actions in MetaTrader.
- Completely Free: An essential trade management utility available at no cost to all registered users.
Use with Caution: This script performs live trading operations (closing positions and deleting pending orders). The action is immediate and irreversible. It is highly recommended to test it on a demo account first to fully understand its comprehensive function.
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.