“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 and margin level: the lot size decides how much your account can take
- How it affects a robot: the lot size is what counts
- 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. Buying physical gold or an ETC with your own money involves no leverage: you pay for all the gold (we compare them in how to invest in gold).
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 $4,000 an ounce, one lot has a notional value of about $400,000.
- The usual minimum size is 0.01 lots (a micro lot): one ounce, about $4,000 notional.
In other words: when a robot opens 0.01 lots of gold, it’s moving the equivalent of about $4,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 $4,000, opening 0.01 lots locks about $200 at 1:20 and about $8 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 ≈ $4,000) | Margin at 1:20 | Margin at 1:100 | Margin at 1:500 |
|---|---|---|---|---|
| 0.01 | ≈ $4,000 | ≈ $200 | ≈ $40 | ≈ $8 |
| 0.05 | ≈ $20,000 | ≈ $1,000 | ≈ $200 | ≈ $40 |
| 0.10 | ≈ $40,000 | ≈ $2,000 | ≈ $400 | ≈ $80 |
| 1.00 | ≈ $400,000 | ≈ $20,000 | ≈ $4,000 | ≈ $800 |
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 $3,000 is tighter at $4,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, non-major currency pairs and major stock indices, 1:10 for other commodities, such as silver (silver versus gold in MT5), and non-major stock indices, 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 (between 74% and 89%: we cover it, with the figure each broker publishes today, in how many traders lose 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, which we explain in margin call and stop out), 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; what changes is how much margin each lot locks.
- It forces you to size your positions. With about €1,000 and 1:20, the broker would in theory let you open around five micro lots at once. At 1:500, more than a hundred and thirty. Being able to doesn’t mean you should: with five micro lots open, every dollar gold falls costs you $5, 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 and margin level: the lot size decides how much your account can take
In the Trade tab of MetaTrader 5’s Toolbox you’ll see your margin, your free margin (equity minus margin) and your margin level (equity divided by margin, as a percentage). Two thresholds depend on that level: the margin call, which only warns you, and the stop out, which closes positions (at 50% in the EU). What each one is and how to work out the price at which they trigger is covered in margin call and stop out in MetaTrader 5. Here it’s enough to see how everything changes with the lot size, on a $1,000 account at 1:20 with gold around $4,000:
- You open 0.01 lots. Margin $200, free margin $800, margin level 500%. If gold falls $100 against you, equity drops to $900 and the level to 450%. Nowhere near any threshold.
- You open 0.04 lots. Margin $800, free margin $200, margin level 125%. Every dollar gold moves is worth $4 to you: a $50 drop takes you to 100% (margin call) and a $150 drop to 50% (stop out), with $600 lost.
- You try to open 0.10 lots. Required margin: $2,000. 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: the lot size is what counts
An Expert Advisor doesn’t decide your leverage: your broker and account type set it. What matters is the lot size each order goes out with, whether the robot calculates it or you set it yourself. Two consequences follow from that:
- 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.
In AUREUM, according to its home page, the reference lot mode calculates the lot on its own: 0.01 lots per 1,000 of balance, rounded to your broker’s lot step, with its minimum lot as the floor and a cap of 1 lot; with 10,000, each of its two strategies trades 0.05 lots. If you’d rather set it yourself, there’s a manual mode, and the installation guide warns that in that mode you can pick a lot that’s too big for your capital. We work out how much that lot weighs on your margin level in margin call and stop out.
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 lot size of that order doesn’t fit in your free margin. There are two ways out, and neither is “keep trying”: a smaller lot or more capital; with AUREUM, the guide explains what to do in each lot mode. 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, including the 50% close-out and negative balance protection; 1:500 rarely comes from a top-tier regulator.
The advantages do exist:
- Less locked margin: opening 0.01 lots costs about $8 instead of $200.
- 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 (is automated trading legal in Spain?), but taxes and reporting requirements still apply; if you live in Spain, how to report them, Modelo 720 included, is covered in trading taxes 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 $4,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 $200 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).
The figures in this article are examples for learning the math: the gold price and your broker’s conditions will differ. Leveraged gold trading carries a high level of risk and you can lose some or all of your capital. The AUREUM figures we quote come from a simulation (backtest), not a live account, and past or simulated results don’t guarantee future results. This content is educational and is not financial advice.
AUREUM: the lot size, based on your balance
Software that trades XAU/USD in your own MetaTrader 5 account, on the 1-hour chart, with a reference lot mode of 0.01 lots per 1,000 of your account and a manual mode if you’d rather set it yourself. Its 2024–2026 backtest is published with its drawdowns: a maximum drawdown of 22.35% across 345 trades. It’s a simulation, not a live account.
See the strategy →