Trailing Stop Manager PRO
- Utilities
- Prime Horizon
- Version: 3.0
- Updated: 18 May 2026
- Activations: 10
Trailing Stop Manager PRO v3.0 — Position Management Suite (MT5)
Trailing Stop Manager PRO is an Expert Advisor for MetaTrader 5 that automates the management of all your open positions: trailing stop, break-even, partial closes, drawdown protection and alerts. Version 3.0 is a complete rebuild that multiplies trailing modes, adds Telegram alerts, integrates drawdown protection for Funded accounts, and provides a visual dashboard with interactive controls.
The EA works with manual orders and orders generated by any other Expert Advisor. It can manage all positions on the account or target specific symbols and MagicNumbers (CSV lists for multi-strategy setups).
What's new in v3.0
- 6 trailing stop modes (vs 2 in v1.0): Fixed Pips, ATR, Chandelier Exit, Moving Average (SMA/EMA), Parabolic SAR, Candle High/Low
- 3-level cumulative partial close (TP1, TP2, TP3) with configurable close percentage per level
- 5 risk presets in one click: Custom, Scalper, Day Trader, Swing, Funded Account
- Equity Drawdown Protection for Funded accounts (daily and overall limits, automatic close)
- Profit Lock: locks a configurable percentage of the peak profit reached
- Virtual SL: trailing stop hidden from the broker
- Telegram alerts via WebRequest (Bot Token + Chat ID)
- Anti-spread filter: suspends trailing when spread exceeds a threshold
- Multi-symbol and multi-MagicNumber filters via CSV
- Interactive dashboard: daily statistics, drag & drop, DPI scaling, tooltips
- State persistence: ON/OFF status is preserved across restarts
Purpose
- Standardize stop management across all open positions on the account
- Dynamically adapt the stop to volatility (ATR, Chandelier, Candle H/L modes)
- Protect capital during Funded account evaluations (Daily DD, Overall DD)
- Manage multiple EAs and strategies in parallel via CSV filters
- Provide real-time monitoring through the interactive dashboard
The 6 trailing modes
- Fixed Pips: constant distance in pips with a minimum step between two modifications
- ATR Dynamic: stop adapted to volatility (ATR x multiplier)
- Chandelier Exit: anchored to the high/low of a window, minus one ATR
- Moving Average: follows a moving average (SMA or EMA) with a pip buffer
- Parabolic SAR: follows the SAR as long as it stays on the correct side of price
- Candle High/Low: follows the low/high of the last N candles with a buffer
Equity Drawdown Protection (Funded accounts)
Module dedicated to traders evaluating on Funded accounts. Continuously monitors two configurable limits:
- Max Daily DD %: maximum drawdown allowed on the start-of-day equity (reset at 00:00 server time)
- Max Overall DD %: maximum drawdown allowed since the initial attachment of the EA
If breached, the EA can close all positions (DD_CloseAll) and/or suspend any new trailing (DD_StopTrailing). The lock can be released manually from the dashboard (RESET DD button).
Profit Lock
Once the profit reaches the arming threshold (ArmAtPips), the EA locks a percentage of the observed peak profit through a stop computed from the entry price. The stop can no longer move backwards.
Telegram alerts
Sends structured notifications to your personal Telegram bot (created via @BotFather) on each key event: break-even activation, TP1/TP2/TP3 hits, Profit Lock arming, Basket Close trigger, Equity DD breach. Configuration via Bot Token + Chat ID in inputs. URL to add in Tools > Options > Expert Advisors > Allow WebRequest: https://api.telegram.org
5 Risk Presets (one-click configuration)
At startup, the chosen preset overrides the relevant inputs:
- Custom: your parameters as-is
- Scalper: trailing 8 pips, step 2, BE 5 pips, 1 TP at 10 pips (50%)
- Day Trader: trailing 20 pips, step 5, BE 15 pips, 3 TPs at 20/40/60 pips (30/30/50%)
- Swing: ATR trailing, BE 50 pips, TPs at 100/200 pips
- Funded Account: trailing 15 pips, BE 8 pips, 2 TPs, Equity DD enabled (3% daily / 7% overall)
3-level partial close (TP1 / TP2 / TP3)
Each level has its own pip threshold and its own close percentage. Levels trigger in order (TP2 requires TP1 to be reached first, etc.) and volumes are calculated on the remaining volume after each close.
Filters and multi-strategy compatibility
- Direction: Buy only, Sell only, or both
- Symbols: CSV list (e.g. EURUSD,XAUUSD,GBPJPY) or empty for all account symbols
- MagicNumbers: CSV list (e.g. 12345,67890) or empty for all magics
- Session: time window (server time) with midnight overlap support
- Anti-spread: suspends trailing when spread exceeds N pips
Dashboard
- Displays active mode, floating P&L, number of trailed/pending positions
- Daily statistics: Day P&L, BE Locks, TP Hits (TP1/TP2/TP3), Profit Locks, Max DD
- Interactive buttons: ON/OFF (state persisted), CLOSE ALL (double-click confirmation), RESET DD
- Draggable header, automatic DPI scaling (4K compatible), educational tooltips on each section
- Chart visuals: profit zone, SL/VSL line, TP levels, per-trade mini-panel, trailing history points
Main parameters
Risk Preset: Custom / Scalper / Day Trader / Swing / Funded
Trailing: TrailingMode, EnableTrailing, TrailingStopPips, TrailingStepPips, ATR_Period, ATR_Multiplier, Chandelier_Period, Chandelier_ATR_Mult, MA_Period, MA_Type, MA_Shift, MA_Buffer_Pips, SAR_Step, SAR_Maximum, Candle_Lookback, Candle_Buffer_Pips
Break-Even: EnableBreakEven, BreakEvenPips, BreakEvenExtraPips
3-level Partial Close: EnableTP1/TP2/TP3, TP1_Pips/TP2_Pips/TP3_Pips, TP1_ClosePercent/TP2_ClosePercent/TP3_ClosePercent
Profit Lock: EnableProfitLock, ProfitLock_ArmAtPips, ProfitLock_LockPct
Virtual SL: UseVirtualSL, VirtualSL_ShowLine
Basket Close: EnableBasketClose, BasketProfitTarget, BasketLossLimit
Equity Drawdown Protection: EnableEquityDD, MaxDailyDD_Percent, MaxOverallDD_Percent, DD_CloseAll, DD_StopTrailing
Session / Spread filters: EnableSessionFilter, SessionStartHour/Min, SessionEndHour/Min, EnableSpreadFilter, MaxSpreadPips
Position filters: TrailBuyOnly, TrailSellOnly, TrailSymbolsFilter (CSV), MagicNumbersFilter (CSV)
Alerts: EnableAlerts, EnablePushNotifications
Telegram: EnableTelegram, TG_BotToken, TG_ChatID, TG_AlertBE, TG_AlertTP, TG_AlertProfitLock, TG_AlertBasket, TG_AlertDD
Dashboard: ShowDashboard, DashboardX, DashboardY, DashWidth, DPIScaleOverride, DashFontBoost
Usage
- Copy the .ex5 file into the MQL5/Experts folder and restart MT5
- For Telegram alerts, add https://api.telegram.org in Tools > Options > Expert Advisors > Allow WebRequest
- Drop the EA onto an MT5 chart (any symbol and timeframe)
- Optional: choose a Risk Preset for automatic configuration, or leave on Custom
- Set the trailing mode and its dedicated parameters
- Enable the desired modules (Break-Even, Partial Close, Profit Lock, Virtual SL, Basket Close, Equity DD)
- Configure filters (direction, CSV symbols, CSV magics, session, spread)
- If Telegram is enabled, fill in Bot Token and Chat ID
- Monitor the interactive dashboard and use the ON/OFF, CLOSE ALL, RESET DD buttons as needed
Recommendations
- On highly volatile indices and metals (XAUUSD, US30, NAS100), ATR or Chandelier modes provide more progressive adaptation
- On major Forex pairs, Fixed mode with step is sufficient in most cases
- For Funded accounts, the Funded Account preset automatically enables Equity DD protection (3% daily / 7% overall) — adjust these values to your provider's rules
- Enable Virtual SL if your broker shows stops to liquidity providers or if you wish to hide your exit level
- Always test each configuration on a demo account before live use
Compatibility
- Platform: MetaTrader 5 (Expert Advisor)
- Account types: Hedging and Netting
- Inputs: manual orders and orders generated by any third-party EA
- Markets: Forex, indices, metals, crypto and other instruments depending on the broker's offering
- Display: automatic DPI scaling (FullHD to 4K)
PDF user guide
A PDF user guide is available on request for buyers. Contact me via MQL5 private messaging after installation to receive it.
FAQ
Does the EA act on pending orders?
No, only on open positions.
Can multiple source EAs with different MagicNumbers be managed?
Yes, the MagicNumbersFilter parameter accepts a CSV list (e.g. 12345,67890,11111).
Can multiple symbols be managed at once from a single chart?
Yes. Leave TrailSymbolsFilter empty to manage all account positions, or list symbols in CSV (e.g. EURUSD,XAUUSD,GBPJPY).
How do I configure Telegram?
Create a bot with @BotFather, get the token. Start a conversation with the bot then open https://api.telegram.org/bot[TOKEN]/getUpdates to retrieve your chat_id. Fill both in the TG_BotToken and TG_ChatID inputs, and add https://api.telegram.org to the allowed WebRequest URLs.
What happens if the Equity DD limit is breached?
Depending on your settings, the EA can close all filtered positions (DD_CloseAll) and/or suspend any new trailing (DD_StopTrailing). The lock can be released manually via the dashboard's RESET DD button.
Can break-even, profit lock and trailing work together?
Yes. The logical order is: Virtual SL check, Profit Lock, Break-Even, Partial Close, then Trailing Stop. Each module only moves the stop in a favorable direction.
What happens if a Stop Loss is already set?
The existing SL is preserved until trailing/step conditions are met. The EA never moves an SL against the position.
Is the ON/OFF status preserved after MT5 restart?
Yes, via MT5 GlobalVariables. If you pause the EA through the dashboard button, it will remain paused on the next startup.
Free version available
A Trailing Stop Manager LITE version is available for free on MQL5 Market. It provides Fixed Pips mode, break-even, 1-level partial close, basic filters and the same dashboard. The PRO version adds the 5 advanced modes (ATR, Chandelier, MA, PSAR, Candle), 3-level partial close, Profit Lock, Equity DD Protection, Telegram alerts, Virtual SL, the 5 Risk Presets and multi-symbol/magic CSV filters.
Risk warning
Trading carries a high risk of loss. This Expert Advisor automates trailing stop management and certain position management actions, but does not guarantee any results. It is your responsibility to test each configuration on a demo account before live use and to adapt it to your broker, your instruments and your risk tolerance. Never invest money you cannot afford to lose.
Changelog
- v3.00 — Major rebuild. Added 4 trailing modes (Chandelier, MA, PSAR, Candle H/L). Moved to 3-level partial close. New modules: Profit Lock, Virtual SL, Basket Close, Equity Drawdown Protection (Funded accounts), Anti-Spread filter, Telegram alerts, 5 Risk Presets in one click. CSV multi-symbol and multi-MagicNumber filters. New dashboard with drag & drop, DPI scaling, tooltips, daily statistics (P&L, BE Locks, TP Hits, Profit Locks, Max DD). State persistence across restarts. Manual RESET DD button.
- v1.00 — Initial version: Fixed Pips and ATR trailing, break-even, 1-level partial close, dashboard, basic filters and alerts.
