The short answer
On-balance volume (OBV) adds an entire bar’s volume when price closes up and subtracts it when price closes down, building a running total. Traders watch whether OBV confirms price. On gold there is a catch: spot XAUUSD has no central volume. The volume on MT4 and MT5 charts is tick volume, a count of price changes on your broker’s feed. Real traded volume exists for COMEX gold futures, so that is what we tested.
On two years of hourly COMEX gold data, with a $0.30 per ounce cost per trade, every OBV rule we tested was positive in both years. But when we ran the same rule with volume switched off, it also made money, sometimes nearly as much. Volume helped in some settings, not all. The honest summary: OBV worked here mostly as a trend tool, and gold trended.
What OBV measures, and the gold volume problem
OBV starts at zero. Each bar, if the close is higher than the previous close, that bar’s volume is added; if lower, it is subtracted. The idea, from Joe Granville in the 1960s, is that volume flows ahead of price, so a rising OBV while price stalls hints at accumulation.
Three kinds of “gold volume” get mixed up:
| Source | What it counts | Available on |
|---|---|---|
| COMEX futures volume | Contracts traded on the exchange (100 oz each) | Futures platforms, data vendors |
| Broker tick volume | Number of price updates in the bar on your broker’s feed | MT4, MT5 and most CFD platforms |
| Spot OTC volume | Not published as a single real-time figure | Not available |
Tick volume tends to rise when activity rises, so it is often used as a rough proxy, but it is broker-specific and is not volume. Our test used COMEX futures volume from Yahoo Finance’s continuous contract. Two limitations: front-month volume drops sharply around contract rolls, and Yahoo’s daily volume before 2020 looks like a different, much smaller series, so we only tested daily OBV from 2021. For more on how futures and CFDs differ, see gold futures vs CFD mechanics.
The OBV settings gold traders use
OBV has no period of its own. Traders compare it with a moving average of itself, or with price:
| Approach | Typical setting | Use |
|---|---|---|
| OBV vs its EMA | 10, 20 or 50 periods | Momentum of volume flow |
| OBV with a price filter | OBV signal only in the direction of the 50 EMA of price | Trend confirmation |
| OBV divergence | Visual comparison of OBV and price highs or lows | Spotting weak moves |
Why gold’s volatility changes things
Gold’s average daily range on COMEX futures was about $34 in 2024, $64 in 2025 and around $123 so far in 2026, and hourly ATR(14) averaged $17.49 over our test window. Volume tends to surge on the same days: US data, Fed decisions and big breakouts. Because OBV adds or subtracts the whole bar’s volume based only on the direction of the close, one high-volume news bar can move OBV more than a week of quiet trading. That makes OBV jumpy around events and is one reason to compare it with an average rather than read it raw.
We tested OBV on 2 years of hourly gold futures data
How we tested. COMEX gold futures (GC=F) 1-hour bars with exchange volume, 30 October 2024 to 30 October 2026, 11,445 bars. Daily bars with volume from January 2021 (split at January 2024), because earlier daily volume on this feed is unreliable. Rule: go long when OBV crosses above its EMA, short when it crosses below, always in the market. The price-filter row only takes longs above the 50 EMA of price and shorts below it. Control rows run the identical rule with every bar’s volume set to 1, a simple count of up closes minus down closes. Signals are taken on the close and filled at the next bar’s open. Each trade is 1 ounce and pays $0.30 per ounce for spread and slippage. Results are in US dollars per ounce; maximum drawdown is the largest fall in closed-trade equity.
For context, holding gold gained about $1,194 an ounce in year 1 of the hourly test and about $14 in year 2, with a run to about $5,627 in January 2026 and a heavy fall in between.
Hourly (H1) results
| Setting | Trades | Win rate | Avg per trade | Profit factor | Net result | Max drawdown | Year 1 | Year 2 |
|---|---|---|---|---|---|---|---|---|
| OBV vs 10 EMA of OBV | 2,222 | 28.8% | +$0.96 | 1.13 | +$2,126 | $959 | +$1,150 | +$976 |
| OBV vs 20 EMA of OBV | 1,443 | 28.6% | +$2.59 | 1.32 | +$3,731 | $675 | +$1,060 | +$2,670 |
| OBV vs 50 EMA of OBV | 829 | 29.2% | +$2.96 | 1.28 | +$2,453 | $624 | +$1,292 | +$1,160 |
| OBV 20 EMA cross + price vs 50 EMA | 774 | 28.7% | +$3.36 | 1.42 | +$2,600 | $512 | +$1,340 | +$1,260 |
| Control: 20 EMA rule, volume ignored | 2,039 | 25.1% | +$0.95 | 1.13 | +$1,941 | $1,094 | +$1,159 | +$782 |
| Control: 50 EMA rule, volume ignored | 1,275 | 25.4% | +$1.82 | 1.23 | +$2,327 | $880 | +$979 | +$1,348 |
Daily (D1) results, 2021 to 2026
| Setting | Trades | Win rate | Avg per trade | Profit factor | Net result | Max drawdown | 2021–23 | 2024–26 |
|---|---|---|---|---|---|---|---|---|
| OBV vs 10 EMA of OBV | 379 | 33.8% | +$0.97 | 1.06 | +$366 | $1,092 | −$502 | +$868 |
| OBV vs 20 EMA of OBV | 275 | 33.5% | +$1.76 | 1.10 | +$485 | $1,387 | −$410 | +$895 |
| OBV vs 50 EMA of OBV | 143 | 31.5% | +$9.55 | 1.50 | +$1,366 | $561 | −$476 | +$1,841 |
| OBV 20 EMA cross + price vs 50 EMA | 154 | 37.0% | +$9.63 | 1.59 | +$1,483 | $649 | −$264 | +$1,747 |
| Control: 20 EMA rule, volume ignored | 299 | 29.8% | +$0.60 | 1.03 | +$179 | $1,727 | −$969 | +$1,148 |
| Control: 50 EMA rule, volume ignored | 135 | 32.6% | +$12.70 | 1.74 | +$1,714 | $1,024 | −$973 | +$2,688 |
What the results say, in plain English
- Every hourly OBV rule was positive in both years. The 20-period version made the most, $3,731 an ounce over 1,443 trades.
- But the volume-free control made money too. A rule that simply counts up closes against down closes made $1,941 (20 EMA) and $2,327 (50 EMA). Much of OBV’s result came from the direction of closes, which is a trend effect, not a volume effect.
- Volume added something in some settings. With the 20 EMA, real OBV beat the control by about $1,790 an ounce and had a smaller drawdown. With the 50 EMA, the difference was small. On daily data, the volume-free 50 EMA control actually did better than real OBV.
- The price filter gave the smoothest hourly result: the smallest drawdown of the OBV rules ($512) and a profit factor of 1.42, with nearly equal years.
- Daily OBV lost in 2021–23 and made money in 2024–26, when gold’s trend was strongest. Holding gold gained about $165 an ounce in the first of those periods and about $1,959 in the second.
- Win rates under 30% on the hourly chart mean long losing streaks. These rules rely on a few big trends.
How to use OBV on different timeframes
Scalping (M1 to M5). OBV on broker tick volume at this speed is mostly noise. If you scalp gold and want volume context, intraday VWAP or a futures-based volume profile is more informative.
Intraday (M15 to H1). Compare OBV with its 20 EMA as a confirmation: is volume flowing with the move you want to trade? Our test suggests it is most useful alongside a price trend filter.
Swing (H4 to D1). Watch for OBV divergence at major levels: price making a new high while OBV does not. We did not test divergence mechanically, so treat it as a context clue, not a signal.
A combination idea: OBV confirmation of a price breakout
- Mark a clear range on H1 or H4.
- When price closes outside it, check whether OBV has also broken its own recent high (for an upside breakout).
- If price breaks but OBV does not, treat the breakout with suspicion and reduce size or wait for a retest.
- Size the trade from the stop distance using the position size calculator.
This uses OBV as a filter for a structure-based trade. Our best indicators for gold trading guide covers how to pair tools that measure different things.
Common mistakes with OBV on gold
- Assuming MT4 or MT5 volume is real volume. It is tick volume, specific to your broker.
- Comparing OBV values across brokers or data feeds. The absolute level of OBV means nothing; only its direction and divergences do.
- Ignoring contract rolls. Futures volume shifts between contracts every couple of months, which can distort OBV on a continuous chart.
- Crediting volume for a trend effect. Our control shows a lot of OBV’s result came from price direction alone.
- Reading one news bar as accumulation. A single high-volume close can swing OBV dramatically.
These results come from simple mechanical rules on past COMEX futures data and are not recommendations. Results on broker tick volume could be quite different, and we did not test them.
Test it yourself
If you have access to gold futures data, run OBV against its 20 EMA and then the same rule with volume set to 1, as we did. If both make similar money, your volume is not adding much. If you only have MT4 or MT5 tick volume, test the rule on it and compare with the volume-free version; that tells you whether your broker’s tick count carries any useful information. Our lesson on backtesting with free data explains where to find gold data, and the gold indicator settings hub compares OBV with 11 other indicators.
Test it with other traders
Volume on gold is one of the most misunderstood topics in retail trading. Inside the XAUUSD Global community, traders compare futures and tick-volume charts side by side and test volume ideas together. The first month is free, then $19.99 a month.
Educational content only, not financial advice. Trading gold with leverage carries a high risk of loss.
Frequently asked questions
Does XAUUSD have real volume?
No. Spot gold trades over the counter between banks, dealers and brokers, so there is no single exchange that records total volume. The volume on most MT4 and MT5 XAUUSD charts is tick volume: the number of price changes your broker’s feed showed in each bar. Real traded volume exists for gold futures on COMEX.
Does OBV work on gold?
On two years of hourly COMEX gold futures data, an OBV-versus-its-EMA rule was positive after a $0.30 per ounce cost for every setting we tested, and positive in both years. The 20-period version made $3,731 per ounce over 1,443 trades. But the results also benefited from gold’s strong trends, and a volume-free control made money too.
Is MT4 or MT5 volume the same as real volume?
No. It is tick volume, a count of price updates from your broker’s feed. Tick volume tends to rise and fall with real activity, so it is often used as a rough proxy, but it differs between brokers and is not the number of ounces or contracts traded. We did not test OBV on tick volume.
Did volume actually help in the OBV test?
Partly. With the 20-period EMA, real OBV made $3,731 per ounce on hourly data versus $1,941 for the same rule with volume ignored. With the 50-period EMA, the two were close ($2,453 versus $2,327). On daily data the evidence was mixed. Volume added something in some settings, not consistently.
What is the best OBV setting for gold?
OBV itself has no period. The setting is the moving average you compare it with. On hourly gold, a 20-period EMA of OBV did best in total, and adding a price filter (only longs above the 50 EMA of price) gave the smallest drawdown. On daily data from 2021, slower 50-period averages did better.
What volume indicator should a gold trader use?
For intraday context, many gold traders use VWAP or volume profile built on futures data, which show where trading activity concentrated. OBV is more of a trend confirmation tool. Whatever you use, know whether your chart shows futures volume or broker tick volume.
Sources and further reading
- CME Group — Gold futures overview — Contract specifications and trading hours for COMEX gold
- CFTC — Commitments of Traders — Weekly futures positioning, including gold
- Investor.gov — Stop order — How stop orders work, and their limits in fast markets
External sites are independent of XAUUSD Global. Check dates and data yourself.