Shortcuts MT5 Hotkeys Scalping
Version 4.8
Developed by Pablo Filipe Soares de Almeida
Link: https://www.mql5.com/en/market/product/146554
Table of Contents
- 1. Overview
- 2. Keyboard Shortcuts
- 2.1 Drawing Tools
- 3. Positions Panel
- 4. Financial Protections
- 5. Automatic Trailing Stop
- 6. Risk and Lot Management
- 7. Final Notes
1. Overview
The Hotkeys Scalping MT5 is an Expert Advisor designed for traders who operate at high speed (scalping/day trading) and wish to execute orders, manage positions, and draw graphical tools using only the keyboard, without needing to click buttons or menus.
Main features:
- More than 20 configurable keyboard shortcuts
- Maximum loss and profit protection (per position or total on the symbol)
- Positions panel with individual selection
- Automatic trailing stop with 4 different modes
- Intelligent lot calculation (fixed, % of account, fixed risk in USD)
- Fast graphical tools (Fibonacci, Risk/Reward, lines, rectangles…)
- Support for pending orders with Risk:Reward management
Important note: All shortcuts must be configured in uppercase letters in the EA inputs.
2. Keyboard Shortcuts (Hotkeys) – Main Commands
| Key | Function | Brief Description |
| B | Buy (Market Buy) | Opens a market buy position with current settings |
| S | Sell (Market Sell) | Opens a market sell position with current settings |
| 1 | Custom Buy Lot 1 | Lot defined in BuyLot_1 (default 0.01) |
| 2 | Custom Buy Lot 2 | Lot defined in BuyLot_2 |
| 3 | Custom Buy Lot 3 | Lot defined in BuyLot_3 |
| 4 | Custom Sell Lot 1 | Lot defined in SellLot_4 |
| 5 | Custom Sell Lot 2 | Lot defined in SellLot_5 |
| 6 | Custom Sell Lot 3 | Lot defined in SellLot_6 |
| L | Buy Limit | Places a pending buy limit order (below current price) |
| M | Sell Limit | Places a pending sell limit order (above current price) |
| U | Buy Stop | Places a pending buy stop order (above current price) |
| N | Sell Stop | Places a pending sell stop order (below current price) |
| Q | Remove Stop Loss | Removes SL from selected position(s) or all |
| W | Remove Take Profit | Removes TP from selected position(s) or all |
| C | Close ALL Positions | Closes all open positions on the symbol (ignores selection) |
| X | Close Specific Position | Closes the oldest/newest or selected position |
| Z | Cancel ALL Pending Orders | Cancels all pending orders on the symbol |
| T | Trailing Stop (manual) | Adjusts SL immediately based on rules |
| P | Partial Close | Closes a percentage (PartialClosePercent) |
| K | Breakeven | Moves SL to entry price |
| O | Show/Hide Positions Panel | Opens or closes the panel |
| 7 | Change to Timeframe 1 | Pre-defined timeframe (default M1) |
| 8 | Change to Timeframe 2 | Pre-defined timeframe (default H1) |
| 9 | Change to Timeframe 3 | Pre-defined timeframe (default D1) |
2.1. Drawing Tools
| Key | Function | Description |
| A | Draw Risk/Reward Guide | Creates Fibonacci with 1x, 2x, 3x levels |
| F | Draw Fibonacci Retracement | Classic Fibonacci (0.236, 0.382, 0.618) |
| R | Draw Rectangle | Rectangle based on recent high/low |
| V | Draw Vertical Line | Vertical line at current time |
| H | Draw Horizontal Line | Horizontal line at price |
| D | Draw Trend Line | Connects recent high and low |
| Y | Draw Text | Inserts editable text on chart |
Duplication Tip: Hold CTRL + click and drag on an object created by hotkey → duplicates the object.
3. Positions Panel (O Key)
- Shows all open positions on the current symbol
- Click on a position → it becomes selected (yellow background)
- Commands like X, P, K, Q, W, T will then affect only the selected position
- C always closes all positions (does not respect selection)
4. Financial Protections
Max Loss
4. Financial Protections
4.1. Max Loss Protection
- EnableMaxLossProtection → Enables loss protection system
- MaxLossUSD → Maximum loss allowed (example: -5.00 USD)
- CloseOnlyLosing → Defines behavior:
- true → closes ONLY the position that reached the loss
- false → closes ALL positions when total loss is reached
4.2. Max Profit Protection
- EnableMaxProfitProtection → Enables profit protection system
- MaxProfitUSD → Maximum profit target (example: +10.00 USD)
- CloseOnlyWinning → Defines behavior:
- true → closes ONLY the winning position
- false → closes ALL positions when target is reached
5. Automatic Trailing Stop
- EnableAutoTrailing
- Toggle with T key
| Mode | Description |
| PointsBased | Fixed points |
| DollarsBased | USD based |
| CandleBased | Previous candles |
| MABased | Moving average |
Trailing will only start after the position reaches this profit level (0 = immediate activation)
6. Risk and Lot Management
Main options:
- Fixed lot (TradeLots)
- Percentage of account lot (AutoLotRiskPercent)
- Fixed risk in USD (MaxRiskUSD)
- Automatic calculation considering commission (CommissionPerLot)
- Stop Loss based on:
High/low of previous bars
Second-based candle range (UseSecondBasedSL)
- Automatic Risk:Reward (for market and pending orders)
7. Final Notes
- Use uppercase letters when changing any hotkey
- Magic Number = 0 allows managing manual orders / from other EAs
- Anti Double-Click: protects against repeated accidental clicks (configurable)
- The EA works best with AutoTrading enabled in MT5
- Test all functions in a demo account before using in a real account
Good luck and good trades!
Pablo Filipe Soares de Almeida


