MZ Smart Trail Manager: Break-even, Stepped Trailing Stop, and Profit Lock
Info
The MZ Smart Trail Manager: Break-even, Stepped Trailing Stop, and Profit Lock is a Expert Advisor for MetaTrader 5 that mz smart trail manager does not open trades. It only manages the stop loss of positions that are already open - your manual trades or the trades of any other Expert Advisor.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use MZ Smart Trail Manager: Break-even, Stepped Trailing Stop, and Profit Lock
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
MZ Smart Trail Manager does not open trades.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: Smart Break-Even and Partial Close - R-based Trade Manager - another powerful expert for MetaTrader 5 traders.
MZ Smart Trail Manager does not open trades. It only manages the stop loss of positions that are already open - your manual trades or the trades of any other Expert Advisor.Also recommended: Trailing Stop Breakeven Manager for MT5 - similar expert with strong performance on MetaTrader 5.
Three protection layers (each can be switched on or off):
1. Break-even
When the price moves a set distance in your favour, the stop jumps to the entry price plus a small offset, so a reversal costs almost nothing.
2. Stepped trailing stop
After a start distance, the stop follows the best price at a fixed distance and moves only in whole steps (fewer modify requests to the broker).
3. Progressive profit lock (account currency)
The bigger the profit, the larger the share that is locked. Example: at 10 USD profit keep 40%, at 30 USD keep 60%, at 60 USD keep 75%, at 100 USD keep 85%.
The manager always uses the strongest of the three, and the stop only ever moves in your favour.
Other features:
- Filter: all positions, manual positions only, or one magic number
- Optional initial stop loss for positions opened without one
- Respects broker stop level and freeze level (no rejected modifications)
- Works on any symbol: gold, forex, indices, oil
- On-chart panel in English, Arabic or both, with a PAUSE / START button
- Shows floating profit and the profit already locked by the stop
Inputs:
By default all distances are ATR multiples (ATR M15, period 14), so the same settings work on gold, forex, indices and oil without changes. Example: break-even trigger 0.5 = half of the current ATR.
Switch "Distance units" to Price units if you prefer fixed distances (1.0 on XAUUSD = a 1 USD move, 0.0010 on EURUSD = 10 pips).
Profit-lock levels are in account currency.
Strategy Tester:
The tester has no manual trading, so in the tester only the EA opens small demo trades (input "Strategy Tester demo") to show how the stop is managed. This option never runs on a live or demo account.
How to use:
Attach the EA to the chart of the symbol you trade. Enable Algo Trading. Open trades manually or let your EA trade - the manager takes care of the stop.
Always test on a demo account first. 2026
You may also like: Smart Money Concept Expert Advisor: Market Structure, FVG, and Pullback Trading - excellent alternative for expert users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.40"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#include <Trade\Trade.mqh>
enum ENUM_MZ_FILTER
{
MZ_ALL = 0,
MZ_MANUAL = 1,
MZ_MAGIC = 2
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.