QuickClose Close All Positions Panel
- 实用工具
-
Keisho Yoshida
MQL4 / MQL5 developer from Japan | Expert Advisors, indicators, MT4-to-MT5 conversion
I build trading tools for MetaTrader 4 and 5, with a focus on clean code and verified behaviour.
What I do - 版本: 1.0
QuickClose is a small panel that closes positions in one click when every second counts.
ACTIONS
- Close all positions
- Close winners only (positions in profit, including swap)
- Close losers only
- Close buys / close sells
- Delete pending orders
SCOPE
- This chart's symbol or all symbols: switch with the Scope button
- Optional magic number filter (-1 = all, 0 = manual trades only)
HOTKEYS (Shift + key)
C close all, P winners, L losers, B buys, S sells, D delete pending orders. Hotkeys can be switched off in the inputs.
SAFETY
- A second click (or a second hotkey press) within 3 seconds confirms each action; this can be switched off
- Positions that fail to close (requote, busy server) are retried up to three times, and the result is shown on the panel: how many were closed and their profit/loss
- The panel shows the number of positions, floating P/L and pending orders in scope
INSTALLATION
Attach QuickClose to any chart and enable Algo Trading. One chart is enough when the scope is set to all symbols.
STRATEGY TESTER
Buttons cannot be clicked in a non-visual test, so in the Strategy Tester QuickClose opens small demonstration trades and a pending order and closes them with the same functions the buttons use. This never happens on a live or demo account: QuickClose itself never opens trades.
