MT4 Version: Ea CloseManager MT4
MT5 Version: Ea CloseManager MT5
Complete User Documentation — MT4 & MT5
1. OVERVIEW
The Ea CloseManager is a utility designed to automate the closing of trades based on specific criteria such as profit or loss thresholds, pip counts, and time limits. This tool helps traders manage their exits more effectively, reducing emotional decision-making and optimizing trade performance. By implementing these automated controls, traders can enhance their trading strategies and maintain discipline even in volatile market conditions.
Who Should Use It: Retail forex traders looking for efficient trade exit strategies to minimize losses and secure profits.
Main Benefit: Automate your trade exits to ensure you capture profits and limit losses without emotional interference.
2. INPUT PARAMETERS & SETTINGS
This product shares a common set of general input settings with all Utility products in this series. The following sections are covered in the common guide: Position Sizing, Alert Settings (popup, push notification, email), Trade Time Settings (session-based time filters), Trade Days Settings (per-day enable/disable with broker start and end times, covering Monday through Sunday), and Day-wise Time Filter Settings (close trades if outside valid trading time). For full details refer to the Common General Input Settings Guide. The sections below cover only the product-specific inputs unique to this product.
General Settings
This section controls the core parameters for managing trade exits based on profit and loss thresholds.
| Setting Name | Type | Default Value | Description | Example |
|---|---|---|---|---|
| Profit Amount | double | 0 | Sets a specific profit amount at which the EA will close trades, helping to secure gains automatically. | 100 — Close trades when a profit of $100 is reached, useful for setting clear profit targets. |
| Loss Amount | double | 0 | Defines the loss amount at which the EA will automatically close trades to prevent further losses. | 50 — Close trades if losses reach $50, ideal for risk management. |
| Profit Percent | double | 0 | Sets a profit percentage at which trades will be closed, allowing for flexible profit-taking strategies. | 10 — Close trades when a 10% profit is achieved, useful for scaling profits. |
| Loss Percent | double | 0 | Defines the percentage loss at which the EA will close trades, ensuring losses are capped. | 5 — Close trades if losses exceed 5%, crucial for maintaining overall account health. |
3. HOW IT WORKS
Core Calculation & Logic
The Close Manager EA monitors open trades and calculates various performance metrics such as total profit, loss, and drawdown. It identifies market conditions that may warrant closing trades based on user-defined criteria.
Utilizing a combination of technical indicators and trade parameters, the EA determines optimal exit points. This ensures that trades are closed in a timely manner to maximize profits or minimize losses.
How It Operates
The EA continuously monitors open positions, evaluating them against the specified criteria like profit targets or drawdown limits. When the conditions are met, it automatically closes the trades to secure gains or limit losses.
Action is triggered based on the user-defined settings, such as profit amount or percentage. If the criteria are not met, the EA remains inactive, allowing trades to run as intended.
Key Features in Detail
This EA offers a comprehensive suite of exit strategies, allowing traders to customize their approach based on individual risk tolerance and trading style. Unlike simpler alternatives, it provides detailed performance metrics and multiple criteria for closing trades, ensuring a tailored experience.
Step-by-Step Workflow
Step 1: Configure Settings Set your desired profit, loss, and time parameters to define when trades should be closed.
Step 2: Enable EA Activate the Close Manager EA on your trading platform to start monitoring your open trades.
Step 3: Monitor Performance Keep an eye on the EA's logs to see how it manages your trades based on the configured settings.
Step 4: Adjust Parameters Modify the settings as needed to better align with your trading strategy and market conditions.
4. KEY FEATURES & CAPABILITIES
The Close Manager EA provides a robust set of features to enhance trade management.
| Feature | Description |
|---|---|
| Flexible Exit Criteria | Allows traders to set custom profit and loss thresholds for closing trades, optimizing exit strategies. |
| Magic Number Support | Enables the use of a magic number to differentiate between trades placed by the EA and manual trades. |
| Time-Based Closures | Allows trades to be closed after a specified number of candles, ensuring timely exits based on market activity. |
| Daily/Weekly/Monthly Targets | Set daily, weekly, or monthly profit and loss targets to manage overall trading performance effectively. |
| Log Capture | Option to capture logs for trade management actions, aiding in performance analysis and strategy refinement. |
Quick Start Guide
Follow these steps to get started in under 5 minutes:
- Download the EA: Obtain the Close Manager EA from the MQL marketplace.
- Install the EA: Place the EA file in the appropriate folder on your trading platform.
- Attach to Chart: Open a chart for the desired trading pair and attach the EA.
- Configure Settings: Adjust the settings to match your trading strategy and risk tolerance.
- Enable Auto Trading: Ensure auto trading is enabled on your platform for the EA to function.
- Monitor Trades: Observe how the EA manages your open trades based on the configured criteria.
- Review Logs: Check the logs to analyze the EA's performance and make necessary adjustments.
- Refine Strategy: Continuously refine your settings as you gain insights from the EA's performance.
You may also be interested in these related products:
Installation Guide for MQL Products | Updating Purchased MQL Products on MT4/MT5 | General Troubleshooting Guide
Check all my products: https://www.mql5.com/en/users/biswait50/seller
Contact me for support: https://www.mql5.com/en/users/biswait50


