“Leverage” sounds like danger and opportunity at the same time. With gold, the numbers are eye-catching too: a single lot controls a position worth hundreds of thousands of dollars. But leverage doesn’t decide how much you make or lose. Your position size does. Here we explain what leverage is, why Europe caps it at 1:20 for gold and how to size a robot’s lots without leaving your account exposed.
- What leverage is, using gold as the example
- How much margin gold requires: 1:20 vs 1:500
- Why Europe capped gold at 1:20 and what it means in practice
- Free margin, margin level and stop out, without the jargon
- How it affects a robot: you choose the lot size
- Brokers outside the EU with higher leverage
- Bottom line: position size is the real enemy
What leverage is, using gold as the example
Leverage lets you control a position larger than the money you put up as collateral. The broker covers the difference. It isn’t a loan with repayments: it’s collateral that the broker locks while the trade is open. That collateral is called margin.
Leverage is written as a ratio. 1:20 means that for every euro you lock up, you control 20 in the market. 1:500 means you control 500. With gold, the numbers are easy to grasp:
- One lot of XAU/USD is 100 troy ounces.
- With gold trading at, say, around $3,000 an ounce, one lot has a notional value of about $300,000.
- The usual minimum size is 0.01 lots (a micro lot): one ounce, about $3,000 notional.
In other words: when a robot opens 0.01 lots of gold, it’s moving the equivalent of about $3,000, even if your account holds €1,000. And every dollar the ounce moves up or down means roughly $1 of profit or loss per 0.01 lots. That sentence is the key to this article: what you make or lose depends on your position size and on how far the price moves. Not on leverage.
It determines how much money the broker locks for each position. Your risk is determined by the lot size you choose: with 0.01 lots you lose the same amount for every dollar gold falls, whether you have 1:20 or 1:500. What changes is how many positions you could open at once with the same money. And that’s where the danger starts.
How much margin gold requires: 1:20 vs 1:500 leverage
Put simply, required margin is the position’s notional value divided by the leverage. With gold around $3,000, opening 0.01 lots locks about $150 at 1:20 and about $6 at 1:500. The table shows why the same lot size “fits” or doesn’t, depending on your account’s leverage:
| Lot | Approx. notional (gold ≈ $3,000) | Margin at 1:20 | Margin at 1:100 | Margin at 1:500 |
|---|---|---|---|---|
| 0.01 | ≈ $3,000 | ≈ $150 | ≈ $30 | ≈ $6 |
| 0.05 | ≈ $15,000 | ≈ $750 | ≈ $150 | ≈ $30 |
| 0.10 | ≈ $30,000 | ≈ $1,500 | ≈ $300 | ≈ $60 |
| 1.00 | ≈ $300,000 | ≈ $15,000 | ≈ $3,000 | ≈ $600 |
Three details people tend to forget:
- Margin depends on price. If gold rises, the notional value of a lot rises, and so does the margin. An account that was tight with gold at $2,500 is tighter at $3,000, without you changing anything.
- Each broker calculates it slightly differently. The exact figure is in MetaTrader 5: right-click XAUUSD in Market Watch › Specification.
- Positions add up. If your system keeps several trades open, the locked margin is the sum of all of them.
Why Europe capped gold leverage at 1:20 and what it means in practice
In 2018, ESMA, the European Union’s securities markets authority, adopted measures for CFDs offered to retail clients. They included leverage caps by asset class: 1:30 for major currency pairs, 1:20 for gold and major stock indices, 1:10 for other commodities, 1:5 for individual stocks and 1:2 for cryptocurrencies. In Spain, the CNMV (the national securities regulator) made them permanent.
The reason wasn’t arbitrary. According to the supervisors’ data, the vast majority of retail CFD accounts lost money, and high leverage stood out as a direct factor: at 1:500, an ordinary swing in gold can wipe out an account in hours. The package brought two other protections that people in the EU now take for granted:
- Mandatory close-out at 50% of margin (the stop out, explained below), the same at every European broker.
- Negative balance protection: you never end up owing the broker money because of a CFD trade.
So what does this mean for you, if you want to trade gold with a robot?
- It doesn’t stop you from trading. An Expert Advisor works just the same at 1:20; AUREUM is designed to work within that limit.
- It forces you to size your positions. With about €1,000 and 1:20, the broker would in theory let you open around seven micro lots at once. At 1:500, more than a hundred and fifty. Being able to doesn’t mean you should: with seven micro lots open, every dollar gold falls costs you $7, and an ordinary session moves $30, $50 or more.
- It acts as a ceiling. At 1:20, a configuration mistake (0.10 instead of 0.01 on a small account) simply won’t go through.
Free margin, margin level and stop out, without the jargon
In the Trade tab of MetaTrader 5’s Toolbox you’ll see five figures. They decide whether your account holds up:
- Balance: what you have, not counting open trades.
- Equity: your balance plus or minus the floating result of your open trades. Your real money right now.
- Margin: what the broker has locked as collateral.
- Free margin: equity minus margin. What you have left to open positions or ride out floating losses.
- Margin level: equity divided by margin, as a percentage. Your account’s thermometer.
Two thresholds hang off that thermometer. The margin call is the warning: usually at 100%, MT5 shows the figures in red and you can’t open anything new. The stop out is the action: the broker closes positions, starting with the one losing the most, until the level recovers. In the EU it’s set at 50%. Outside the EU, each broker sets its own (20%, 30%…), and the lower it is, the more you’ve lost by the time you’re finally closed out.
Here’s an example with round numbers, on a $1,000 account at 1:20 with gold around $3,000:
- You open 0.01 lots. Margin $150, free margin $850, margin level 667%. If gold falls $100 against you, equity drops to $900 and the level to 600%. Nowhere near any threshold.
- You open 0.05 lots. Margin $750, free margin $250, margin level 133%. Every dollar gold moves is worth $5 to you. A $50 drop (an ordinary day) takes you to a 100% level: margin call. A $125 drop takes you to 50%: stop out, with $625 lost. Almost two-thirds of the account gone in one or two bad days.
- You try to open 0.10 lots. Required margin: $1,500. You don’t have it. The order doesn’t even go through.
Leverage was the same in all three cases. The only thing that changed was the lot size. To measure those bad streaks, read our guide on what drawdown is.
How leverage affects a trading robot: you choose the lot size
An Expert Advisor doesn’t decide your leverage: your broker and account type set it. The robot sends orders with the lot size you have configured; in AUREUM that parameter is called mmLots. Two consequences follow from that decision:
- If the lot doesn’t fit in your free margin, MT5 rejects the order. The Journal shows “Not enough money”. The robot doesn’t improvise: it simply doesn’t trade, or it misses entries.
- If the lot fits but is large, you trade with a low margin level and the stop out is one bad day away. A robot executes without hesitating, including during a losing streak. Its discipline requires you to have thought about position size beforehand.
That’s why the installation guide suggests a conservative rule: 0.01 lots for every €1,000 of capital. At 1:20, that size locks around 15% of the account and keeps the margin level above 600%, far away from the stop out. The rough scale:
- Up to €2,000: 0.01, the smallest possible size. Below €1,000, gold is especially risky.
- €2,000 to €3,000: 0.02.
- €3,000 to €5,000: 0.03.
- €5,000 to €10,000: 0.05.
- €10,000 or more: 0.10, the strategy’s reference size.
These figures are a rough guide, not investment advice; we break down starting capital in how much money you need for automated trading. And one tip that saves you some scares: test on demo and in the Strategy Tester with the same leverage you’ll have on your live account. Many demo accounts are created with 1:100 or 1:500; everything fits there, and then the same settings don’t fit on a live 1:20 account.
Common leverage mistakes
- Setting 0.10 lots with €500: “Not enough money” from the very first order. Or worse, the order goes through and the stop out arrives on a bad day.
- Testing on demo at 1:500 and going live at 1:20 without changing the lot size.
- Raising the lot size after a good week “because it’s going well”: the margin multiplies and your cushion shrinks. It’s one of the most expensive mistakes with an Expert Advisor.
- Forgetting that margin grows with the price of gold even when the lot size stays the same.
It’s MetaTrader telling you that the configured lot size doesn’t fit in your free margin. There are two ways out, and neither is “keep trying”: lower mmLots or add capital. If the message shows up now and then, it’s almost always because gold has risen and the margin with it.
Brokers outside the EU with higher leverage: the real pros and cons
You’ll see ads for 1:200, 1:500 and even 1:1000 on gold. They almost always come from entities registered outside the EU (Seychelles, Mauritius, Belize, St. Vincent…), sometimes part of the same group that runs a regulated European subsidiary. The UK and Australia apply caps similar to Europe’s; 1:500 rarely comes from a top-tier regulator.
The advantages do exist:
- Less locked margin: opening 0.01 lots costs about $6 instead of $150.
- More room for strategies that hold several positions at once.
And the risks aren’t theoretical:
- Regulation. The firm isn’t supervised by Spain’s CNMV or covered by the ESMA rules: no European compensation scheme, a regulator that may not respond, and disputes settled on another continent.
- No mandatory negative balance protection. After a sharp price gap, you could end up owing the broker money.
- A lower stop out. At 20% or 30%, by the time you’re closed out you’ve lost much more than you would at a European broker.
- Temptation. The rule of 0.01 lots per €1,000 is the same, but nothing stops you if you ignore it. The configuration mistake that 1:20 would reject, 1:500 accepts.
- Obligations that don’t go away. Trading with a foreign broker is legal, but taxes and reporting requirements still apply; if you live in Spain, we cover them in is automated trading legal in Spain?
Our position: to size a gold robot properly, 1:20 at an EU-regulated broker is more than enough. If you still choose one outside the EU, do it for its trading conditions and serious regulation, not for the number in the ad. You’ll find the criteria in how to choose a broker for an Expert Advisor and in Step 0 of the guide.
Bottom line: position size is the real enemy
Leverage isn’t the villain of this story. It’s an accounting rule: how much the broker locks for each position. What decides whether your account survives a bad streak is the lot size you configure, measured against the capital you have. A practical summary:
- A micro lot of gold (0.01) moves about $3,000 in notional value and gains or loses around $1 for every dollar the ounce moves, at any leverage.
- At 1:20, that micro lot locks about $150 of margin. A robot trades without trouble; you just have to size it.
- Conservative rule: 0.01 lots per €1,000 of capital. Raise the lot size when your capital allows it, never because of a good week.
- Keep an eye on your margin level: if it regularly sits below 300%, the lot size is too big for the account (a rough figure).
- Demo and Strategy Tester with the same leverage as your live account. More leverage outside the EU means more freedom and less of a safety net.
And the usual warning, because it’s the truth: trading gold with leverage carries high risk and you can lose part or all of the capital you deposit, with or without a robot. No lot-size rule removes that risk; it only makes it manageable. To understand why gold moves the way it does, continue with how to trade gold (XAU/USD).
AUREUM: you choose the lot size, with the table in front of you
A gold strategy designed for 1:20, with real published metrics (drawdowns included) and a guide that tells you which lot size to use for your capital. Try it on demo before you decide.
See the strategy →