Seven buttons on the chart to close positions on Gold (XAUUSD), EURUSD or any symbol in one click: close all, close buys, close sells, close winners, close losers, close only the chart symbol, and delete pending orders. It works on manual trades and on positions opened by any other EA.
A magic number filter decides what the panel touches. 0 means everything on the account, manual trades included, any other value limits it to that EA. A scope switch limits the panel to the chart symbol or opens it to all symbols, and a line under the buttons shows how many positions it would close and their floating result.
Before each close an optional confirmation box asks Yes or No, so a misclick does not wipe the account. The positions are closed one by one with market orders, so in a fast market each one fills at its own price. The panel never opens a trade.
Close / Exit
Filters
Panel
Expert settings
Keep it on a spare chart next to a grid or martingale EA on XAUUSD, EURUSD, GBPUSD, US30, NAS100 or BTCUSD, set its magic number in the filter, and you have an emergency exit for that basket alone without touching your manual trades. Pair it with my Basket Pair Closer, which closes the best winner with the worst loser automatically, and use this panel when you want to decide by hand. If you build your own EA, the close loop is a short function that walks the positions from the end and can be copied as it is.
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.
Auto Fibo Extended
Auto Fibo Extended is a MetaTrader 5 indicator designed to automatically identify significant swing highs and swing lows and draw Fibonacci Retracement and Extension levels directly on the chart.
Risk Lot Sizing Library - four risk bases, tick-value scaling, margin cap, daily limit
A stop distance in points is not money until the tick size and tick value make it one. This library turns four risk bases into a lot size, floors it to the volume step, caps it against free margin and tracks a daily loss limit. Two MQL5 headers, no DLL.
Session Range Breakout
Draws the high and low of a chosen time window and alerts on the first break on each side. The levels are also available through iCustom.
Trade Manager Utility
Manages positions that are already open: it adds a missing SL/TP, moves the stop to break even, trails it, caps the position count and applies daily equity limits. It never opens trades.