Gold Auto Lot Size Order Panel
- Утилиты
- Версия: 1.20
- Активации: 5
Drag from entry to stop loss on XAUUSD or INDICES or FOREX: lot size from your risk, risk/reward box, then place it as a market or pending order with one click.
GOLD AUTO LOT SIZE ORDER PANEL turns your chart into a trade planner and order panel in one. Drag from your entry to your stop loss and it calculates the exact lot size for the dollar amount you want to risk. It draws a risk/reward box and places the trade for real with one click, as a market order or a Buy/Sell Limit/Stop at your drawn entry.
You don't need a calculator, and you don't have to type a lot size, SL or TP into the order ticket.
HOW IT WORKS
- Set your Risk Per Trade (in dollars) and your Risk:Reward ratio on the panel's numpad.
- Hold the left mouse button at your entry price and drag to your stop loss.
- While you drag, a live tooltip shows the direction, stop distance in pips, lot size, take-profit price and reward.
- Release and a position box is drawn: a red risk zone (entry to stop) and a green reward zone (entry to target), with the lot size, SL, TP, pips and dollar amounts inside.
- Tap NOW to send a market order, or PENDING to place a Buy/Sell Limit or Stop at the drawn entry price. The order type is picked for you. Every order is tap twice to confirm.
The order goes out with the lot size, stop loss and take profit exactly as drawn.
KEY FEATURES
- Lot size from your dollar risk. Lot = risk ÷ (stop distance × value per lot), rounded DOWN to your broker's lot step, so you never risk more than you set.
- Optional spread and commission per lot built into the calculation.
- Risk/reward position box with entry, SL and TP prices, pips and dollar amounts.
- One-click execution, market or pending, with a tap-twice confirmation on every order.
- Broker-safe orders: prices rounded to the symbol's tick size, fill policy chosen per symbol, and the broker's minimum stop distance checked before sending, with a clear message if a stop is too close.
- TRADES panel: every open trade and pending order on the symbol, including trades placed with MT5's one-click panel or by hand, with live price and P/L.
- Risk and Target on every trade: the dollar amount you lose if the stop is hit and make if the take profit is hit, for the trade's actual lot size. It updates live as you edit SL/TP or move to breakeven, and shows the profit locked in once the stop is past entry. Trades with no stop loss are flagged in red.
- Per-trade buttons: EDIT (set or change SL and TP), BE (move the stop to breakeven), 1/2 (close half) and X (close or delete).
- Bulk buttons: BE ALL, CLOSE ALL, CLOSE WINNING and CLOSE LOSING. Pending orders are never touched by bulk closes.
- Automatic breakeven: tick "All Trades Breakeven at" and set a percentage. Each trade's stop moves to entry once price has covered that share of the way to its TP.
- TODAY'S HISTORY tab: every trade on the symbol closed today, with size, entry, close price, P/L, risk and target, close time and how it closed (TP hit, SL hit, BE hit, stop out or manual). A summary line shows closed / won / lost / BE counts and today's net P/L.
- Live Balance, Equity and Free Margin in the TRADES title bar.
- Plan several trades at once. Delete any box with its [x] tag, the last one with the DELETE key, or all of them with CLEAR ALL (tap twice).
- Draggable panels. Positions, risk, ratio and settings are remembered across timeframe and template changes.
- Hotkeys: M toggles the measuring tool, H hides or shows the panels, ESC cancels.
- No DLLs and no external connections. Pure MQL5.
WHO IT'S FOR
Traders who size every trade by a fixed dollar risk and want to go from chart idea to placed order in seconds, without working out lot sizes by hand or retyping prices into the order ticket.
REQUIREMENTS
- MetaTrader 5, attached to an XAUUSD (gold) chart.
- AutoTrading enabled on the toolbar, and "Allow Algo Trading" ticked in the EA's Common tab.
- Works on hedging and netting accounts.
ABOUT THE DEMO
The Strategy Tester doesn't pass mouse drags to Expert Advisors, so the drag-to-measure tool can't be shown in the demo. The video and screenshots show it on a live chart. Test it first on a demo account at your broker.
RELATED PRODUCTS
- Gold Lot Size Calculator (free): the lot size calculator on its own. https://www.mql5.com/en/market/product/195324
- Gold Position Planner: the full planning box without order execution. https://www.mql5.com/en/market/product/195848
RISK NOTICE
Trading leveraged products carries a high level of risk. This tool calculates position size and places the orders you confirm. It doesn't make trading decisions or guarantee any result.

