Stop Pilot Trade Manager
- Utilità
-
Saad Ferdi
MQL5 and Python developer focused on gold and forex.
I build and fix MT5 Expert Advisors and indicators, with clean source code and clear input settings. - Versione: 1.0
- Attivazioni: 5
Stop Pilot Trade Manager looks after your open positions so you don't have to watch the chart.
It never opens trades on a live account. It only manages the stop loss, take profit and volume of positions that already exist: your manual trades or trades from any other Expert Advisor.
What it does
- Initial SL / TP. A position opened without a stop gets one at the distance you choose. Useful for one-click trading from the phone.
- Break-even with locked profit. After X points of profit, the stop moves to the entry plus Y points.
- Partial close. Closes a percentage of the volume at a profit level, once per position. This still works after a restart.
- Trailing stop, in one of two modes:
- a fixed distance in points;
- an ATR multiple, with the ATR period and timeframe as inputs and the ATR read from the last closed bar. Trailing starts after a profit level, with a minimum step between moves.
- The stop never moves backwards. Every new level must be better than the current one.
- Broker-safe. It respects the symbol's stop level and freeze level, prices are rounded to the tick size, and it waits 60 seconds (input) after a broker rejection before it tries that position again.
- Filters.
- This symbol or all symbols.
- Magic number: -1 for any, 0 for manual trades only, or one EA's magic.
- Buy and/or sell.
- Text contained in the position comment.
- Status panel. Shows the managed positions with profit in points, stop distance from entry, current state and a counter of every action. An ACTIVE / PAUSED button stops all management with one click.
- Timing. It checks on every tick and every second, so positions on other symbols are managed even when the chart symbol is quiet.
Inputs
| Group | Inputs |
| Which positions | Scope, Magic, Direction, Comment filter |
| Initial SL/TP | InitSL, InitTP (points, 0 = off) |
| Break-even | On, Trigger, Lock (points) |
| Partial close | On, Trigger (points), Percent |
| Trailing | Mode (off / points / ATR), Start, Distance, ATR period, ATR timeframe, ATR multiple, Step |
| Safety | Retry pause (s), Log |
| Panel | Show, X, Y, colours |
How to use
- Attach it to any chart and allow Algo Trading.
- Choose the scope. With "All symbols", one chart manages the whole account.
- To manage only your manual trades, set Magic = 0.
Notes
- All distances are in points of each position's own symbol. On XAUUSD, 100 points = 1.00 USD of price.
- In the Strategy Tester only, it opens one small position at a time with the minimum volume, so the management can be seen in visual mode. On a live or demo chart it never opens a trade.
- The partial-close state is kept in terminal global variables (TMPRO_PC_<ticket>).
- It is a trade-management tool. It does not give entry signals and makes no promise of profit.
