Skip to content
← All posts

Gold EAs

Lot Size for Gold Trading: Sizing an EA for Your Deposit

EABuild Team · · 10 min read

Lot Size for Gold Trading: Sizing an EA for Your Deposit – EABuild

Choosing the lot size for gold is the one setting that decides how much a single price move costs you, whatever strategy the expert advisor (EA, a program that places trades by itself) uses. This post explains what a lot means on XAUUSD, how to work out a size from your deposit with plain arithmetic, how margin limits it, and how to check the lot inputs of an EA on a demo account.

What one lot means on XAUUSD

A lot is the unit of trade size in MetaTrader. On most brokers one standard lot of gold is 100 troy ounces, so 0.10 lot is 10 ounces and 0.01 lot is 1 ounce. The contract size is set by your broker, so open the symbol specification in the Market Watch window and read it before you do any sums. This post uses 100 ounces per lot as its working assumption.

Gold is quoted in US dollars per ounce, for example 2,000.00. Because of that, the money value of a move is easy to compute once you know the contract size.

Dollar value of a price move

The profit or loss on a position is the price change in dollars, multiplied by the ounces held. With a 100-ounce contract, a move of 1.00 in the quoted price is worth about 100 dollars per lot. The table shows the same rule for three common sizes.

Lot sizeOuncesValue of a 1.00 price moveValue of a 5.00 price move
0.011$1$5
0.1010$10$50
1.00100$100$500

These figures ignore spread, commission and slippage, which add to the cost of every trade. They also depend on the contract size, which can differ between brokers and account types.

Why talk about pips less on gold

Many guides count gold in pips, but brokers disagree on what a pip or a point is for XAUUSD. Some quote two decimals, others three. To avoid confusion, measure the stop distance in dollars of price, as shown on the chart, and convert that with the contract size. The method is the same on MT4 and MT5.

Working out a gold lot size from your deposit

The standard method has three inputs: how much you are willing to lose on one trade, how far away your stop loss is, and the dollar value of one lot per unit of price move. The formula is simple.

Lot size = amount at risk / (stop distance in dollars x ounces per lot)

A worked example with a hypothetical $1,000 deposit

Suppose you decide that one trade may lose 1 percent of a $1,000 account, which is $10. Your stop loss sits 5.00 below the entry price. With a 100-ounce contract, one lot loses $500 over that distance, so the lot size is 10 / 500 = 0.02 lot.

  1. Amount at risk: $10.
  2. Stop distance: 5.00 in price.
  3. Loss per lot over that distance: 5.00 x 100 = $500.
  4. Lot size: 10 / 500 = 0.02.

The 1 percent figure here is only an illustration of the arithmetic. It is not a recommendation, and you choose your own limit.

The same example on a $100 account

Now take a hypothetical $100 account and the same 5.00 stop. One percent is $1, so the formula gives 1 / 500 = 0.002 lot. Most brokers do not allow a size that small. The usual minimum is 0.01 lot, which loses $5 over a 5.00 stop. That is 5 percent of the account on one trade, five times the level you aimed for.

This is the main practical point for small deposits on gold. The smallest allowed lot can already be larger than your intended risk. Check your broker's minimum lot and lot step before you plan around a small balance.

Wider stops need smaller lots

The formula also shows how stop distance drives size. Double the stop to 10.00 and the lot size for the same $10 of risk halves to 0.01. A strategy that holds trades through larger swings needs a smaller lot than a scalper using a tight stop, if you want the same dollar risk per trade.

Margin and leverage: the limit on gold lot size

Risk per trade is one limit. Margin is the other. Margin is the amount your broker sets aside from your balance while a position is open, and it is calculated from the position value and your account leverage.

The general formula is: margin = ounces x price / leverage. As an illustration, 0.01 lot is 1 ounce. At a price of 2,000 and leverage of 1:100, the margin is 1 x 2,000 / 100 = $20. At 0.10 lot the margin is $200, and at 1.00 lot it is $2,000.

If your equity (balance plus floating profit or loss) falls too low against the margin in use, the broker can close positions. Your broker's margin call and stop-out levels differ, so read them in the account terms. A lot size that fits your risk rule can still be too big if the margin it needs leaves no room for a trade to move against you, or for a second position to open.

Several positions multiply the exposure

Many gold EAs can hold more than one position at a time. Margin and risk then add up across all open orders, not just the first. When you read the lot inputs of an EA, ask how many positions it can hold at once, not only how large the first one is.

Fixed lot or risk percent: the lot inputs of a gold EA

Expert advisors usually offer one of two ways to size trades, and some offer both.

  • Fixed lot. The EA opens every trade at the same size, for example 0.01. It is easy to follow, but the size does not follow your balance as it grows or shrinks.
  • Risk percent or auto lot. The EA computes a size from a percentage of balance or equity and the distance to its stop loss. The result changes as the account changes, and it relies on the EA having a stop to measure from.

The listings for the three EAs below do not say which lot inputs each one has, or what the default values are. Treat that as unknown. Open the EA's inputs window in MetaTrader, find the lot setting, and read its name and its description before the first trade. If an EA has a martingale option (increasing the lot size after a losing trade), a grid option (extra orders at set price steps) or a multiplier, those settings change the real exposure far more than the starting lot.

For a longer look at how those two strategy types behave, see the post on grid and martingale EAs compared.

Three gold EAs and what their listings say about deposit

Three XAUUSD listings in this shop give a minimum deposit, or leave it out. Everything below comes from the listings. A listing gives a starting point for planning, not a promise about any result.

Gold Trend Scalping EA for MT4

Gold Trend Scalping EA for MT4 is an MT4 expert advisor, build 1471 or newer, listed for XAUUSD and US30 on M15. The listed strategy is trend, scalping and trend following, and the listing does not mention grid or martingale. The recommended minimum deposit is $100, and the download holds the EA file, one helper file and 15 set files. A set file is a saved list of input settings that you load from the EA's inputs window.

A $100 deposit is the small-account case from the earlier example. The smallest lot a broker allows is a real constraint there, so check it first. Because the EA also lists US30, remember that a lot is worth a different amount on an index than on gold.

Saviour Gold Bot for MT4

Saviour Gold Bot for MT4 is an MT4 expert advisor designed for XAUUSD on M30, with price action as the listed strategy and no grid or martingale mentioned. The recommended minimum deposit is $100. The package has one EA file and 11 set files. With that many set files, load them one at a time on a demo chart and compare the lot values each one contains.

Advanced Gold Trading EA for MT4

Advanced Gold Trading EA for MT4 is an MT4 expert advisor for XAUUSD on M15, with scalping and news trading as its listed strategy and no grid or martingale mentioned. The listing's details give a minimum deposit of $1,000, while the short listing leaves that line out, so confirm it on the product page. The download has the EA file, one helper file and four set files.

News trading means trades around economic releases, when spreads can widen and slippage is common. Both change the real cost of a given lot size, so a lot that looks modest on paper can behave differently during a release.

The three listings side by side

ListingSymbolsTimeframeStrategy labelsMinimum deposit listedSet files
Gold Trend Scalping EA for MT4XAUUSD, US30M15Trend, scalping, trend following$10015
Saviour Gold Bot for MT4XAUUSDM30Price action$10011
Advanced Gold Trading EA for MT4XAUUSDM15Scalping, news trading$1,0004

A listed minimum deposit is not a recommended lot size. Use the formula in this post, with your own risk limit and your broker's contract size, to decide the number.

Checking the lot size of a gold EA before going live

Once you have a number, confirm it behaves the way your arithmetic says. A demo account lets you do this with virtual money on live prices. The post on demo and live account testing for EAs covers where demo fills differ from live ones.

  1. Read the symbol specification. Note the contract size, minimum lot, lot step and maximum lot for gold at your broker.
  2. Compute your size. Pick a risk amount and a stop distance, then apply the formula and round down to the lot step.
  3. Open the EA inputs. Find the lot setting and any multiplier, then enter the size you calculated instead of the default.
  4. Check the margin. Watch the margin used in the Trade tab of the Terminal window when a position opens, and compare it with your equity.
  5. Let it run through several sessions. Include a news release if the strategy labels mention it. Record the largest position count and the largest floating loss you see.
  6. Compare with your limit. If the floating loss is larger than you meant to accept, lower the lot and repeat.

A strategy tester run can add information about position sizes over a long period. The post on backtesting an EA in MT4 explains how to set one up. Backtest results depend on the tick data and settings used, so treat them as one input and not as a forecast.

Common sizing mistakes on gold

  • Copying a lot size from a set file without checking it against your own deposit.
  • Ignoring the broker's minimum lot on a small account.
  • Measuring risk from the first order only, when the EA can add more.
  • Forgetting that the contract size can differ between account types at the same broker.
  • Raising the lot after a few good days without recalculating the risk.

Testing your gold lot size on a demo account this week

A practical first step is to attach one of the EAs above to an XAUUSD demo chart on its listed timeframe, set a small lot from your own calculation, and watch it for a week. Write down the lot, the margin used and the largest floating loss. For gold in general, the gold EA guide covers what else to check, and every product above is also part of the membership, which gives access to every product in the catalogue.

Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results; only trade with money you can afford to lose.

Tags: Gold EAs, XAUUSD, Position Sizing

← All posts

Get every EA with membership

308 products · from $16.59/month

See plans

More in Gold EAs