Simple MT5 Hotkey Trade Manager

Заказчик: AI | Опубликовано: 28.11.2025

I need a lightweight MetaTrader 5 script (.mq5) that lets me manage positions instantly from the keyboard. The hot keys must cover the following function of trade management: • Open a trade • Close all positions • Close all profitable positions • Close all losing positions • Close all buy positions • Close all sell positions • Modify a trade i.e. creating a single line for SL and TP for all orders (regardless of the number of open positions), significantly away from the current price. • Increase lot size by 0.01 or 0.10 increment • Decrease lot size by 0.01 or 0.10 increment For each function I want to be able to assign or later change the key combination myself, so please store the mappings in clearly commented input parameters. The script should work on any chart and symbol, react without noticeable delay, and compile cleanly in MetaEditor with no external libraries. Deliverables 1. Well-commented .mq5 source file. 2. Simple instructions for adjusting the hot-key settings. 3. Quick test that shows each action firing correctly live in a demo account. Thank you.