Panshi Panshi Quant
Panshi Quant · Research Ledger
Panshi Quant / GUIDE

Gold EA Lot Size and Margin: Calculate Combined Exposure First

The first order's lot size does not describe the risk of an EA that can hold several orders. Add the volumes that may coexist, then check the broker's contract specification, price, leverage and margin rules. Required margin is not a maximum-loss figure.

2026-11-27

How do you add the positions?

In a hypothetical teaching example, three open orders of 0.01, 0.02 and 0.04 lots total 0.07 lots, seven times the first order. These are not default settings for any Panshi product. List open positions and possible pending orders separately and model which can coexist.

Why is 0.07 lots not one fixed dollar amount?

Contract size, tick size, quote currency and account currency depend on the broker's symbol specification. Two brokers may display XAUUSD while applying different conditions. Record the specification in MT5 before converting a price movement into account-currency profit or loss.

How is margin different from loss?

Margin is collateral required to open or maintain an exposure, not a stop-loss or cap on losses. Floating P&L changes with price, spread, costs and direction. Hedged positions may have separate broker rules. Compare the estimate with free margin and the broker's stop-out conditions.

What can MT5 calculate for you?

For one proposed order, MT5 or MQL5 OrderCalcMargin can estimate required margin using order type, symbol, volume and price. Its single-order result is not a complete account risk check that includes existing positions and pending orders. Test adverse moves and wider spreads on a demo account.

What changes when volume scales or reverses?

Write down every level's volume, orders that can overlap and combined exposure under an adverse scenario. Do not use a single winning-trade rate or backtest profit as a substitute. Nilong can increase opposite-direction exposure by levels; review its documented rules and your loss limit before use.

Source

MQL5: official OrderCalcMargin reference

Example volumes explain arithmetic only. They are not product defaults or a safe position size. Leveraged trading can lose all capital.

Risk disclosure Nilong risk rules Evaluating a backtest

CONNECTING · Fetching quotesXAUUSD -- XAGUSD -- EURUSD -- GBPUSD -- USDJPY -- BTCUSDT -- ETHUSDT -- SOLUSDT -- CONNECTING · Fetching quotesXAUUSD -- XAGUSD -- EURUSD -- GBPUSD -- USDJPY -- BTCUSDT -- ETHUSDT -- SOLUSDT --
PSMT5