CloseIfProfitorLoss with Trailing
- Utilities
- Vladislav Andruschenko
- Version: 25.977
- Updated: 26 November 2025
- Activations: 10
Close If Profit or Loss with Trailing for MetaTrader 4 — automatic closing by total profit or loss
A reliable trade-management utility for MetaTrader 4 that automatically closes positions when the total profit or total loss reaches the level you set. The Expert Advisor monitors open trades, calculates floating profit and loss, can trail profit, and helps close positions faster than manual reaction.
MetaTrader 4 is still used by many manual traders, grid traders, scalpers, and Expert Advisor users. But MT4 does not have a convenient built-in tool for closing a group of trades by total result. This utility adds that missing control layer.
Close If Profit or Loss with Trailing can work with manual trading, other Expert Advisors, grid systems, averaging, recovery strategies, and multi-symbol trading. You set the rule — the EA controls the result and closes positions when the condition is reached.
MT5 version | Full Description + DEMO + PDF | How To Buy | How To Install | How to get Log Files | All products from Expforex
Why traders use this MT4 utility
- Close by total profit in deposit currency, points, or percent
- Close by total loss to limit risk and protect the account
- Trailing Profit to follow floating profit after the target is reached
- Control only the current symbol or all symbols on the account
- Calculate BUY and SELL positions together or separately
- Use virtual control for separate positions
- Delete pending orders after closing positions if needed
- Use the emergency Close All button for instant manual closing
The main idea
The logic is simple: you define the total profit or total loss level, and the EA closes the selected positions when that level is reached.
This is useful when you manage several positions, trade a basket, use grid or averaging logic, or run other Expert Advisors and need an external risk-control module. The utility does not open trades and does not predict the market. It only manages closing according to your rules.
When the selected positions reach the configured profit or loss level, the Expert Advisor can close positions and delete pending orders according to your settings.
How Trailing Profit works
Trailing Profit allows the EA to protect floating profit without closing positions immediately at the first target.
Example: if Profit $ is set to 10 and TrailingProfit is set to 5, the EA starts trailing after the total profit reaches 10 dollars. If profit grows, the trailing level follows it. If profit rolls back by 5 dollars, the EA closes the selected positions.
Working modes
- Current Symbol — manage only the chart symbol
- All Symbols — monitor positions across the whole account
- Separate BUY / SELL — manage buy and sell directions independently
- Separate Order — manage each position separately with virtual logic
Typical use cases
- basket closing for manual trading
- profit protection for grid and averaging systems
- loss limitation for risky trading sessions
- external protection for other MT4 Expert Advisors
- emergency closing during fast market movement
Usage
- Attach the Expert Advisor to the required MetaTrader 4 chart.
- Select Current Symbol or All Symbols mode.
- Choose whether BUY and SELL positions should be calculated together or separately.
- Set a non-zero value for profit or loss closing.
- Enable Trailing Profit if needed.
- Turn on Close If Profit or Loss on the panel.
Important notes
- The EA does not open trades by itself.
- The utility does not predict market direction.
- The tool does not replace a trading strategy.
- Always test your settings on a demo account first.
- For stable work, use a reliable VPS and check broker execution conditions.
Additional recommendation
This utility contains the CLP logic from our professional one-click trading system. If you need a full manual trading panel with position management, order management, chart trading, keyboard trading, signals, and advanced manual trading functions, I recommend VirtualTradePad for MetaTrader 4.
Tags: Expforex, Vladon, Close If Profit or Loss, CloseIfProfitorLoss, CLP, MetaTrader 4 utility, MT4 risk manager, MT4 trade manager, close by profit, close by loss, total profit, total loss, profit trailing, trailing profit, basket closing, grid trading, averaging trading, manual trading, Expert Advisor, Forex utility, Forex risk management, account protection, Close All, virtual Stop Loss, virtual Take Profit


it is okay, not bad!