Position Closer MT5
- Utilities
- Version: 1.0
Position Closer MT5 is a convenient trading utility that displays directly on the chart and allows you to manage position closing quickly and efficiently. Instead of closing each position individually, you can close them all with one button.
How It Works:
The panel consists of two large informative buttons:
The green "Close BUY" button — shows the number of open Buy positions on the current symbol and their total profit/loss.
The brown "Close SELL" button — shows the number of open Sell positions on the current symbol and their total profit/loss.
The information on the buttons updates automatically in real-time with every change in the market situation.
Features:
Instant Closing: One click on the "Close BUY" button closes ALL Buy positions on the current symbol. Similarly for Sell positions.
Magic Number Filtering: Only positions whose Magic Number matches the one specified in the input parameters are closed. This allows the panel to be used alongside other expert advisors without affecting their positions.
Current Symbol Only: The panel closes positions exclusively on the trading instrument on whose chart it is installed. This prevents accidental closing of positions on other currency pairs.
Visual Control: You always see the current number of positions and their total result directly on the panel, without needing to open the "Trade" tab in the terminal.
Feedback: During the closing operation, the button displays the status "...Loading...", and upon completion, a report on the number of closed positions is output to the terminal log.
Input Parameters:
| Parameter | Description |
|---|---|
| Magic Number | Unique identifier for positions managed by the panel. Only positions with this Magic Number will be closed. If set to 0, the panel will close all positions on the symbol regardless of Magic Number. |
| Color buy button | Select color for the Buy positions close button. Default is green. |
| Color sell button | Select color for the Sell positions close button. Default is brown. |
Usage Example:
Install the panel on the chart of the desired instrument (e.g., EURUSD).
Specify the Magic Number (if you need to filter positions by this attribute).
During trading, information will be displayed on the buttons:
"Close BUY | 3 | +125.40 $" — means there are 3 open Buy positions with a total profit of $125.40.
"Close SELL | 1 | -45.20 $" — means there is 1 open Sell position with a loss of $45.20.
To close all Buy positions, simply press the green button.
To close all Sell positions, press the brown button.
Important:
The product is intended exclusively for manual position management and does not contain automatic trading algorithms.
