Version 3.7 2026.03.17
📌 Overview
Designed for ultra‑short‑term, scalp, and high‑frequency traders, this all‑in‑one trading assistant combines complex trading logic with an intuitive graphical interface. With a single click or a keystroke, you can execute intelligent batch closing, precise risk control, and real‑time monitoring. After deep performance optimisation, every operation is completed in microseconds, ensuring you stay ahead in fast‑moving markets.

⚡ Core Features
1. Smart Batch Closing – Precise Volume Control
Customizable Closing Order: Choose between LIFO (Last In, First Out) and FIFO (First In, First Out) to match your trading style.
Volume‑Based Closing: Simply enter the desired volume in the lot box, and the system will automatically deduct it from opposing positions.
Intelligent Partial Closing: When a single position exceeds the required volume, a direct partial close request is sent – the original position’s volume is reduced without creating extra orders, achieving maximum speed.
Batch Close Optimisation: The trading request structure is reused inside the closing loop, avoiding repetitive construction and boosting closing speed by over 30%.

2. Millisecond‑Level Performance
Request Reuse Technology: Invariant trade parameters (symbol, deviation, magic number) are initialised only once, significantly reducing CPU overhead.
Merged Data Traversal: A single loop retrieves position direction, total volume, floating profit/loss, and overall P&L – replacing three separate traversals and cutting Tick processing time by 50%.
Ultra‑Short Wait Strategy: After opening a position, a 1 ms polling loop (max 10 attempts) replaces the former 100 ms fixed delay, improving response time by nearly a hundredfold.

3. Multi‑Dimensional Risk Control
Per‑Order Lot Limit: Prevents accidental oversized positions.
Total Position Limit: Automatically calculates the total volume across all symbols to avoid over‑trading.
Daily Loss Limit: Continuously monitors realised and floating losses; upon reaching the threshold, trading is automatically locked and all positions are closed (configurable).
Sound Alerts: Every risk event is accompanied by a configurable sound, keeping you instantly informed.

4. Full Keyboard Hotkey Operation
Assign custom hotkeys for Buy, Sell, Close All, Increase Lots, Decrease Lots (default: B/S/C/D/A) – mouse‑free trading.
Independent hotkey toggle to enable/disable at will, preventing accidental triggers.

5. Draggable Floating Panel
Title‑Bar Drag: Move the panel anywhere by dragging its title bar; the last position is saved and restored on restart.
Boundary Awareness: The panel always stays inside the chart’s visible area.

6. Fully Visual Customisation
Independent Colour Control: Text and background colours for every button can be set individually – create your own unique interface.
Adjustable Font Sizes: Title, label, button, and edit box fonts are separately configurable to suit any screen.
Real‑Time Status Bar: The bottom status line shows the latest operation result, risk status, and remaining volume to close – all at a glance.


🔧 Technical Specifications
Developed on the MQL5 Standard Library – stable and dependency‑free.
Supports all symbols (Forex, indices, commodities, cryptocurrencies).
Works on any timeframe – simply drag onto a chart.
Performance benchmark: < 5 µs per Tick, < 2 ms for a batch of 10 closing orders.

📈 Applicable Scenarios
Ultra‑short‑term high‑frequency trading
Scalping strategies
Grid / Martingale position management
Multi‑symbol risk monitoring


🛠️ Input Parameters at a Glance
Parameter Description
DefaultLots / LotsStep Default lot, step, min/max lots
DefaultSLPoints / DefaultTPPoints Default stop‑loss / take‑profit points
MaxLotPerOrder / MaxTotalLots / MaxDailyLoss Per‑order / total / daily loss limits
KeyBuy / KeySell / KeyCloseAll / KeyLotsInc / KeyLotsDec Custom hotkey letters
CloseOrder Closing order (0 = LIFO, 1 = FIFO)
EnableSound / SoundFile Sound alert switch and file name
PanelX / PanelY / PanelWidth / PanelHeight Initial panel position and size
20+ colour parameters Independent text/background colours for all buttons

📞 Support
Feedback and questions are welcome via MQL5 private messages or the comment section.
Free updates provided, with continuous performance improvements.