A stop manager for MetaTrader 5 that moves your stop loss to breakeven first and then trails it behind price, on manual trades and on positions opened by any other EA.
When a position reaches the breakeven start in points, the stop goes to the entry price plus a small offset, so a winning trade can no longer turn into a loss. After that the trailing stop follows price at a fixed distance in points or at a multiple of ATR, and it only moves when the improvement is at least the step you set, so it does not flood the server with modifications. You can let the trailing start only after breakeven is done, or run both on their own levels.
It does not open trades. It works on the positions already in the account, filtered by magic number (0 takes all of them, manual trades included), by direction and by the chart symbol or the whole account. If a position has no stop loss at all, it can add one at the distance you choose.
Strategy
Close / Exit
Risk protection
Filters
Expert settings
Run it on its own chart with magic 0 to protect the trades you open from the phone, or set the magic of another EA so it only touches that robot. Test the points mode against the ATR mode in the Strategy Tester on XAUUSD, EURUSD, GBPUSD, US30, NAS100 and BTCUSD: a fixed distance that fits gold on M15 is usually too wide for EURUSD. For partial closes at several targets, pair it with my Partial Close Multi TP Manager.
Open source. Use it as it is, adapt it, build your own version on top of it.
New versions and new tools are announced first on my MQL5 channel: /en/channels/xander
Questions, suggestions and your own backtests are welcome in the Xander Lab group: /en/messages/02eec85e4364dd01
More tools on my profile: /en/users/09151993a
Provided as is, use at your own risk.
EA Auditor. What an Expert Advisor really does, from its deal history
Script that reads the deal history of your account and writes a plain note on how an Expert Advisor really trades: entries, stops and trailing, lot changes, martingale, averaging, trades at once, hours and holding time, plus what to watch out for. It never trades and says nothing about profit
Key Levels with Touch Counter - previous day/week/month highs and lows plus round numbers, with touch and sweep counts
Draws the previous day, previous week and previous month high and low, plus automatic round-number levels around the current price. Every level carries a label with how many times price touched it and how many times a bar swept it (pierced the level and closed back on the original side). Counts use closed bars only, so they do not repaint. Optional alerts (popup, push, email, sound) for sweeps and new touches. Touch tolerance is a fraction of ATR or a fixed number of points. The 6 previous-period levels and their touch counts are exposed in 12 indicator buffers for use from an Expert Advisor with iCustom(). Works on any timeframe up to H4. Read-only: it never opens, modifies or closes a trade. No DLLs, no web requests.
Risk Lot Panel - position size by risk and stop distance
On-chart panel that calculates the lot size for a given risk (% of balance, % of equity or fixed money) and stop-loss distance, using the broker's tick size and tick value. Works on forex, metals, indices and crypto.
Spread ATR Monitor - current, average and max spread vs ATR
Shows the current spread next to its recent average and maximum and compares it with ATR, so you can see at a glance when trading costs are too high relative to the symbol's normal movement.