How Grid Trading Works on Gold: Baskets, Levels and Take-Profit Explained
A gold grid opens positions at set price intervals and closes the whole basket on one shared take-profit. Most baskets close for a small gain because gold usually retraces, but each added level raises exposure, and the floating loss grows faster than the price move. The rare failure can be large. The lot-sizing style (fixed, stepped or doubling), the maximum levels, your margin buffer and the broker's stop-out level decide how large it gets. A high win rate alone proves nothing about risk.
Grid expert advisors are popular on gold because they do not need a forecast of direction. They just need price to come back. That also makes them easy to misunderstand, because the headline numbers, mostly a long string of small wins, say very little about the one scenario that matters.
This guide explains how a grid basket works in plain English, using clearly hypothetical numbers so you can follow the arithmetic yourself. We cover lot-sizing styles, why the payoff has a long tail, how margin and stop-out decide the outcome, what each risk control costs, and how to evaluate any grid EA. It is education, not advice, and none of the figures below are the settings of a real product. Trading gold with leverage can lose money.
In This Guide
- What is grid trading, and how does it work on gold?
- How does the arithmetic of a gold grid basket work?
- Fixed, stepped or doubling: how do lot-sizing styles change the risk?
- Why do most baskets win but a few lose so much?
- How do margin and stop-out arithmetic decide when a basket is closed?
- Which risk controls does a grid need, and what does each cost?
- How do you evaluate a grid expert advisor before using it?
- What mistakes do people make when running a grid on gold?
- FAQ
What is grid trading, and how does it work on gold?
A grid is a set of orders placed at regular price intervals. Instead of choosing one entry and one exit, the trader (or the expert advisor) spreads entries across a range of prices and closes them for a profit when price returns toward the middle. Quantpedia's primer on grid trading notes that the approach relies on the assumption that prices oscillate, and that it performs poorly when price trends persistently in one direction.
Two-way grids and one-direction baskets
A two-way grid places buy orders below the market and sell orders above it, so something fills whichever way gold moves. A one-direction basket works differently. It opens one position, and if price moves against it, it adds another position in the same direction at the next level, then another. All positions in the basket are managed together and closed on a single shared take-profit.
The second design is the one this article works through. The basket is built by averaging into a losing position: every added level lowers the average entry price, so the market needs to retrace less to bring the whole basket back to a profit.
Why gold attracts grid systems
Gold (XAUUSD) swings often retrace, it trades almost around the clock on weekdays, and its contract value is large, so a few dollars of movement is meaningful. Those traits cut both ways. Retracements are what a grid feeds on, but gold can also trend for days without a pause, and a basket that keeps adding into a trend is exactly the scenario that hurts. How wide and how fast the swings are depends on the volatility regime, which we cover in our gold volatility guide.
One regulatory caution before any numbers. The CFTC says automated trading programs, including bots, are unlikely to deliver consistent profits, and that tuning a bot to past market activity gives no assurance those conditions return (see the CFTC forex fraud page). Read everything below as mechanics, not as a promise of anything.
How does the arithmetic of a gold grid basket work?
All numbers in this section are hypothetical. They are chosen to make the arithmetic easy to follow and are not the settings of any real expert advisor. Assume a buy basket on XAUUSD with these rules:
- First buy at $4,000, then a new buy every $5 lower.
- Every level is 0.10 lot (fixed). On many brokers one standard lot is 100 ounces, so a $1 move on 0.10 lot is $10. Check your own broker's contract specification.
- The whole basket closes when price reaches the average entry price plus $4.
Here is the basket as price falls through the levels.
| Level reached | Entry price of newest level | Total lots | Average entry | Basket take-profit price | Rebound needed from newest entry | Floating loss at newest entry | Profit if take-profit hits |
|---|---|---|---|---|---|---|---|
| 1 | $4,000 | 0.1 | $4,000.00 | $4,004.00 | $4.0 | -$0 | +$40 |
| 2 | $3,995 | 0.2 | $3,997.50 | $4,001.50 | $6.5 | -$50 | +$80 |
| 3 | $3,990 | 0.3 | $3,995.00 | $3,999.00 | $9.0 | -$150 | +$120 |
| 4 | $3,985 | 0.4 | $3,992.50 | $3,996.50 | $11.5 | -$300 | +$160 |
| 5 | $3,980 | 0.5 | $3,990.00 | $3,994.00 | $14.0 | -$500 | +$200 |
| 6 | $3,975 | 0.6 | $3,987.50 | $3,991.50 | $16.5 | -$750 | +$240 |
| 8 | $3,965 | 0.8 | $3,982.50 | $3,986.50 | $21.5 | -$1,400 | +$320 |
| 10 | $3,955 | 1.0 | $3,977.50 | $3,981.50 | $26.5 | -$2,250 | +$400 |
Read the table from two angles. First, the rebound required keeps growing: $4 at level 1, but $26.50 by level 10, because the take-profit sits above the average entry while price keeps sinking below it. Second, compare the last two columns. Profit at the take-profit grows in a straight line with lots (always total lots x 100 x $4), while the floating loss grows with the square of the number of levels.
That is why the loss outpaces the price move. Between level 2 and level 10 price fell nine times as far ($5 to $45), yet the floating loss went from $50 to $2,250, a 45-fold rise. Each new level adds a position and makes every earlier position lose more. At level 10 the basket would earn $400 if it recovered, while it is $2,250 under water. The reward for recovery is small and capped; the cost of waiting is not. Spreads and swap add a little more on top.
Fixed, stepped or doubling: how do lot-sizing styles change the risk?
The same ladder of prices produces very different outcomes depending on how lot size changes from level to level. There are three common styles.
- Fixed lots. Every level is the same size. Exposure grows linearly: ten levels means ten times the first position.
- Arithmetic step. The lot size rises by a fixed amount per level (for example 0.10, 0.12, 0.14 and so on). Exposure grows faster than linear but on a predictable curve.
- Geometric or martingale. The lot size is multiplied at each level, most often doubled. Exposure grows exponentially.
The next table runs all three through the same ten-level, $5-spacing ladder from $4,000 (hypothetical again).
| Lot style (hypothetical) | Lots at level 5 | Lots at level 10 | Total lots after 10 levels | Floating loss at level 10 ($45 below first entry) | Margin used at level 10 | Loss versus fixed | Tail-risk character |
|---|---|---|---|---|---|---|---|
| Fixed (0.10 every level) | 0.10 | 0.10 | 1.00 | -$2,250 | $3,955 | 1.0x | Loss grows with the square of the number of levels; the slowest of the three |
| Arithmetic step (+0.02 per level) | 0.18 | 0.28 | 1.90 | -$3,450 | $7,514 | 1.5x | Faster than fixed, but exposure follows a curve you can calculate and cap |
| Doubling / martingale (x2 per level) | 1.60 | 51.20 | 102.30 | -$50,650 | $404,597 | 22.5x | Exponential; the newest level alone is half of all exposure |
The appeal of faster lot growth is real: with more lots working at the lower prices, the average entry sinks toward the newest price and the basket needs a smaller rebound. In the doubling case the average at level 10 is about $3,960, only $5 above the newest entry. The cost is in the last column. The doubling basket's loss is 22.5 times the fixed basket's, and its margin requirement is beyond almost any retail account long before level 10. Quantpedia calls grid trading a textbook example of a martingale strategy because risk and leverage rise as losses grow, the reverse of what modern money management usually does.
Stepped sizing sits in the middle. Total exposure follows a curve you can calculate in advance and cap with a maximum number of levels. No lot style removes the tail; it only changes how steep it is.
Why do most baskets win but a few lose so much?
Gold tends to oscillate, so a basket usually gets its retracement and closes for a small profit. That produces a high percentage of winning baskets. The catch is the shape of the payoff: many small wins and a few large losses. Here is a hypothetical illustration with round numbers:
- 95 baskets close at an average of +$150 each: +$14,250.
- 5 baskets fail at an average of -$3,000 each: -$15,000.
- Net result over 100 baskets: -$750, despite a 95% win rate.
Change the numbers slightly and the net turns positive. The point is not that grids always lose. It is that the win rate alone tells you almost nothing. What matters is how large the failures are relative to the wins, how often they occur, and whether the account survives the first one.
Survivorship in win-rate statistics
Three effects make grid statistics look better than they are. First, a short record may simply not contain a failure: a system with a one-in-twenty failure rate can easily run fifteen baskets without showing it. Second, Quantpedia warns that reporting only closed trades can make a grid look more profitable than it is, because losing positions stay open and unrealised. Look at equity, not just closed profit. Third, the accounts you hear about are the ones that survived; traders who were stopped out rarely publish a statement. The CFTC reports that about two-thirds of customers at registered retail forex dealers lose money (see its customer advisory on forex), a reminder that visible winners are a filtered sample.
So a high percentage of winning baskets is not the same as a low-risk system. Ask for the largest drawdown, the deepest level ever reached and what the account looked like at that moment. Our maximum drawdown guide explains how to read those numbers.
How do margin and stop-out arithmetic decide when a basket is closed?
Often the grid never reaches its own exit. The broker closes it first. In MetaTrader 5 the margin level is equity divided by used margin, expressed as a percentage, and the stop-out level is the point at which the platform starts force-closing positions. The MQL5 account properties reference lists these values and notes that the thresholds are set per account, either as a percentage or as a money amount.
Regulators set a floor for retail clients in some regions. The UK FCA requires firms to close out retail CFD positions when margin falls to 50% of the requirement, and ESMA applies a 50% close-out rule in the EU, either per account or per position. Brokers elsewhere set their own: one published broker help page lists a 90% margin call and a 50% stop-out for retail clients; confirm your own broker's figures.
A worked example at a hypothetical $4,000 gold price
Take 1 lot = 100 ounces and leverage of 1:100. Notional value is 100 x $4,000 = $400,000, so one lot needs $4,000 of margin and 0.10 lot needs $400. Margin is computed on the current price, so it changes as gold moves. Use the fixed grid from earlier and a hypothetical 50% stop-out.
- $10,000 account. At level 10 (price $3,955): equity is $10,000 - $2,250 = $7,750 and margin is about $3,955, so the margin level is about 196%. With ten levels filled and price still falling, the level reaches 50% at roughly $3,897, about $103 below the first entry.
- $2,000 account, same grid. At level 6 (price $3,975): equity is $2,000 - $750 = $1,250 against about $2,385 of margin, a level of about 52%. A little lower, near $3,974, it reaches 50% and the broker begins closing positions. That is a fall of about $26 from the first entry, before the seventh level has even opened.
Same rules, same lot sizes, very different outcomes. The deposit relative to the deepest level the grid can reach is the entire story. See margin and leverage explained and how to avoid margin call scenarios when running a gold EA for buffer planning. Stop-out also closes the most unprofitable position first, so the exit is neither orderly nor at a price you chose. Trading gold with leverage can lose money, and losses can exceed what you planned.
Which risk controls does a grid need, and what does each cost?
A grid is defined by a handful of dials. Each one trades profit frequency against tail risk.
- Spacing. Wider spacing means fewer levels fill for a given move, so margin builds more slowly, but each rebound needed is larger. Tight spacing fills fast and compounds exposure quickly.
- Take-profit distance. A small target closes baskets quickly and keeps the win rate high, but profits are tiny next to the loss on a deep basket. A large target waits longer and keeps the basket exposed to more adverse moves.
- Maximum number of levels. Caps exposure. The cost: when the cap is reached with price still falling, the basket sits with a floating loss and no further averaging, so recovery depends on a full retrace.
- Equity stop. Closes the basket when account equity falls by a set amount. It turns an open-ended loss into a bounded one, at the price of realising a loss that might have recovered.
- Close-all before the weekend. Avoids carrying a basket over a gap. The cost is realising on Friday a loss that might have been recovered on Monday.
No setting removes the trade-off. The honest question is which loss you prefer: a small, frequent, certain one (stops, weekend closes) or a rare, large one (letting the basket run). A grid with no stop loss on its positions relies on account margin and any equity stop to define its worst case.
How gold's volatility regime changes a grid
Spacing that suits a quiet, ranging market can be too tight when volatility expands: levels fill in rapid succession and exposure compounds in minutes. In a calm regime the same spacing may rarely fill past level three. Event days such as central bank decisions and inflation data can move gold through several levels at once, and spreads tend to widen at those moments. The volatility guide linked earlier covers how to read it, and our write-up on gold's pullback from its 2026 record shows how quickly conditions can change.
How do you evaluate a grid expert advisor before using it?
Use this table as a checklist. A vendor who cannot answer these questions plainly has given you the most important information available. To see how different gold EAs compare on verified results and drawdown, see our ranking of the best gold trading bots.
| What to check | What a good answer looks like | Warning sign |
|---|---|---|
| Disclosed rules | You can read how levels, lot sizes and the take-profit work before paying | "Secret algorithm" with no description of the order logic |
| Maximum number of levels | A stated cap, plus what happens when the cap is reached | "Unlimited" levels, or no answer |
| Lot progression | Fixed or stepped, with total lots at the deepest level stated | Doubling with no cap on total exposure |
| Stop loss and equity stop | Clear statement of whether positions carry a stop and what the account-level exit is | "Never loses", or silence about what ends a failing basket |
| Drawdown relative to start balance | Maximum drawdown shown against the starting balance, including floating loss | Only profit percentages, or closed-trade results only |
| Track record | Verified live account with a long enough history and the broker named | Screenshots, demo-only results or edited statements |
| Forward test | You can run it on a demo account first and watch several full baskets | Pressure to buy before you can test |
| Account type | States hedging or netting, and cent or standard, and why | Works "on any account" |
| Weekend and news handling | Documented behaviour at the Friday close and around major releases | No mention of gaps |
Hedging versus netting, cent versus standard
Account type changes how a grid behaves. On a netting account the platform keeps a single net position per symbol, so added levels merge into one position. On a hedging account each level remains its own position and the expert advisor can track them individually. MetaQuotes introduced the hedging option in MetaTrader 5 build 1325, and the MQL5 reference describes retail netting and retail hedging margin modes. A grid written for hedging accounts may not work as designed on a netting account.
A cent account reports balances in cents, so a smaller deposit can run the same structure with proportionally smaller money amounts. The arithmetic does not change; the ratio of deposit to deepest-level exposure does. Our guide to cent account gold trading explains how they work.
Check the track record, then test on demo
Ask for a verified live record, not screenshots. Our Myfxbook verification guide explains what a verified account does and does not prove. Then run the system on a demo account long enough to see several complete baskets; running an EA on demo first covers the steps.
For transparency, here is what Golden Viper EA discloses publicly. It is a gold-only (XAUUSD) grid expert advisor for MetaTrader 5, built for hedging cent accounts. It opens one basket at a time and closes the whole basket on one shared take-profit, adds levels as price moves against the basket with lot size rising level by level (no doubling), and has no stop loss on its positions. It has no news filter and no equity stop, and its settings are fixed and built in. The exact rules are in the rulebook that comes with the purchase. Put it through the same checklist as anything else, and see the 14 checks before buying a gold EA for the wider list.
What mistakes do people make when running a grid on gold?
- Adding capital to survive. Topping up a deep basket to keep it from stopping out feeds more money into the losing trade. Decide the most you will lose before you start, not during.
- Running several grid EAs on one account. Their baskets share the same margin and often meet the same adverse move together. Two grids that each look moderate can add up to one account-ending exposure.
- No margin buffer. Sizing the deposit to the first few levels, as the $2,000 example showed, leaves no room for the sequence you will eventually meet.
- Ignoring weekends and news. Gaps skip levels and wide spreads inflate costs.
- Treating a high win rate as proof. See the payoff shape earlier in this article.
The CFTC's advisory on trading systems sold online says no trading system can guarantee profits, and the National Futures Association is the place to check registration where it applies. Trading gold with leverage can lose money, and a grid can lose a lot of it quickly.
Frequently Asked Questions About Grid Trading on Gold
What is grid trading in simple terms?
Grid trading places orders at regular price intervals instead of choosing a single entry. A basket grid opens a position, adds another at a set distance if price moves against it, and repeats. The whole basket closes together at a shared take-profit. It earns when price retraces and loses when price keeps moving one way.
Is a grid the same as martingale?
Not necessarily. A grid is the layout of orders at intervals. Martingale describes how lot size changes: sizes are multiplied, usually doubled, at each adverse level. A grid can use fixed lots, a fixed lot step or doubling. Doubling is the highest-risk version because exposure grows exponentially with each added level.
Why do grid systems show such high win rates?
Gold usually retraces at some point, so most baskets close for a small profit. The failures are rare but large. A high percentage of winning baskets therefore describes frequency, not risk. Ask for the largest drawdown, the deepest level reached and how big the average loss was compared with the average win.
What is the biggest risk of a gold grid?
A sustained move in one direction. Each added level increases exposure, the floating loss grows faster than the price move, and the broker may stop out the account if the margin level falls too far. Weekend gaps, news spikes and wide spreads make that scenario worse. Leveraged gold trading can lose money.
How much money do you need to run a grid on XAUUSD?
There is no universal number. It depends on lot size, spacing and how many levels the grid can open. In the hypothetical example above, the same grid held ten levels on a $10,000 account but was stopped out around level six or seven on $2,000. Work out margin at your deepest level and keep a buffer.
Should a grid have a stop loss?
It is a trade-off. A stop or equity stop caps the loss but turns a possibly recoverable drawdown into a realised one. No stop leaves account margin and any account-level exit to define the worst case. Whichever way a system is built, you should know exactly what ends a failing basket.
Does a grid work on a netting account?
Often not as designed. Netting accounts hold one net position per symbol, so levels merge into a single position, while a hedging account keeps each level as its own position. Many gold grid systems are written for hedging accounts. Check the account margin mode in MetaTrader 5 before running any grid.
Is a cent account better for a grid?
A cent account lets a smaller deposit run the same structure, which is useful for testing. It does not change the maths: what matters is the ratio of balance to exposure at the deepest level. Contract rules can also differ by broker, so read the symbol specification before trading.
How can I test a grid EA before risking money?
Run it on a demo account long enough to see several complete baskets, ideally including a volatile week. Compare the results with the vendor's claims, note how deep baskets get, and read the drawdown. Then ask for a verified live record. A demo tests behaviour; it does not guarantee live results.
Let Golden Viper EA trade gold for you
Automated XAUUSD grid trading for MT5 cent accounts, verified live on Myfxbook. One-time $299, lifetime access.
Get Lifetime Access — $299