Order Keypad Panel
Typing a precise lot size or a specific stop price into the terminal's own narrow order dialog under pressure is where fat-finger mistakes happen - an extra zero, a missed decimal point, a stop typed on the wrong side of price. This panel replaces free-typing with a small on-chart keypad: pick which field is active (Lots, SL or TP) with the small selector button next to it, then key in digits exactly as you would on a calculator, with clear/backspace keys to fix a mistake before it goes anywhere. Nothing reaches the server unchecked. Lots are floored to the broker's lot step and rejected if outside its min/max. A stop or target is rejected if it sits closer to price than MODE_STOPLEVEL, or on the wrong side of the entry price for the chosen direction - both classic causes of a silently rejected order that this panel catches before sending rather than after. The edit boxes are read-only to the OS keyboard by design: everything must pass through the keypad and its validation path, so what you see in the box is always exactly what will be sent. Notes and limitations This panel only sends new market orders (Buy/Sell); it does not modify or close existing positions and does not manage a trade after it is sent. SL/TP are entered as absolute prices, not pip distances - the trader must compute the price level themselves (or read it off the chart). The keypad has no long-press repeat or paste; every digit is one click, which is deliberate (it is the friction that prevents fat-finger typing) but means entering a long value takes several clicks.
Expert advisor · MT4 · v1.0 · Free
About Order Keypad Panel
Order Keypad Panel is an expert advisor (trading robot) for MetaTrader 4. It has 6 settings, such as Corner, X offset and Y offset. MQL source code included.
Files in the download: OrderKeypadPanel.ex4, OrderKeypadPanel.mq4, OrderKeypadPanel.txt.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Corner | 1 | Panel corner: 0=top-left 1=top-right 2=bottom-left 3=bottom-right |
| X offset | 12 | Panel offset from the chosen corner, X pixels |
| Y offset | 18 | Panel offset from the chosen corner, Y pixels |
| Default lots | 0.10 | Lots value shown on first attach |
| Slippage | 30 | Slippage in points passed to OrderSend |
| Magic | 38100 | Magic number for orders sent from this panel |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Buy/Sell Arrows · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code