How to Trade Gold (XAU/USD) on Macro Data
Gold pays nothing, so its price is what the market is willing to give up to hold it. That makes XAU/USD a bet on three things: the dollar, the real interest rate, and how frightened people are. This post explains how each one works, why gold struggles when the Fed is hiking into an inflation story, which environments have been best for being long, and the REST calls and MCP tools that put the numbers beside an MT5 or TradingView chart.
1. What actually moves gold?
Treat XAU/USD as a currency pair, not a commodity. Jewellery and mine supply set the price over decades. Over the weeks and days a CFD trader holds a position, three things do almost all of the work.
- The real interest rate. Gold has no coupon and no dividend. Holding it means giving up the yield a Treasury would pay, less the inflation that would eat that yield. The higher that real yield, the more it costs to hold gold, and the lower gold tends to go.
- The dollar. Gold is quoted in dollars. When the dollar strengthens, an ounce costs fewer dollars even if nothing about gold has changed, and the buyers who pay in euros, yen or rupees face a higher local price.
- Fear. Gold is the one reserve asset with no issuer. When people distrust the system, the currency or the bond market, they buy it whatever the yield. Central banks have been large buyers since 2022, spreading their reserves away from any one issuer.
The first two are the price of money, and the Fed sets the price of money. So the data that moves gold is the data that moves the Fed: CPI, core PCE, payrolls and the FOMC decision itself. The third is the exception, and knowing which regime you are in is most of the job.
2. How does a strong dollar affect gold?
Usually gold falls when the dollar rises, and for two reasons that are easy to confuse.
The first is arithmetic. An ounce of gold has a price in dollars, in euros and in yen at the same instant. If the dollar gains 1% against everything else and gold's value to the world is unchanged, the dollar price has to fall about 1% to keep the euro and yen prices where they were. This route has nothing to do with gold. It is the same for oil and copper.
The second is a shared cause. The thing that most often strengthens the dollar is higher US yields relative to the rest of the world, and higher US yields are also what raise the cost of holding gold. Both markets are reacting to the same number, so they move together, in opposite directions, and the correlation looks tighter than the arithmetic alone would make it.
Two cautions. The dollar index, DXY, is about 58% euro, so it can sit still while the dollar moves hard against the currency your account is funded in. Our post on how the dollar, yields and FX correlate works through that. And the rule breaks when fear is the driver: in a flight to safety the dollar and gold can both rise, because both are being bought as shelter. Gold up with the dollar up is a fear signal, not a data error.
3. Why do real yields matter more than the headline yield?
Because gold competes with a Treasury for the same money, and the Treasury's attraction is what it pays after inflation.
The real yield is the nominal yield less expected inflation. The cleanest market measure of expected inflation is the breakeven, the gap between an ordinary Treasury and an inflation-protected one of the same maturity. If the 10-year Treasury yields 4.2% and the 10-year breakeven is 2.2%, the 10-year real yield is 2.0%. That 2.0% is the annual cost of holding gold instead.
This is why gold can rise on a day yields rise. If the 10-year climbs 10 basis points because inflation expectations climbed 15, the real yield fell and gold is cheaper to hold, not dearer. Watch the two pieces, not the headline.
Helious publishes both pieces. The nominal curve is on the rates page and the /v1/rates call, and the 5-year, 10-year and 5-year-5-year-forward breakevens are on the inflation tracker and in /v1/inflation under be_5y, be_10y and be_5y5y. Subtract and you have the real yield that prices gold. The auction of the 10-year TIPS is the Treasury sale that prices the 10-year real yield most directly.
4. If inflation is high, why does gold struggle while the Fed is hiking?
Because inflation on its own is not what gold responds to. The policy answer to inflation is.
When the Fed raises rates faster than inflation is rising, the real yield goes up, the dollar goes up, and gold pays the price for both. 2022 is the clean case. US consumer inflation ran above 8% for most of the year and gold still fell about a fifth from its March high to its autumn low, because the Fed raised the funds rate by 4.25 percentage points in nine months and real yields went from deeply negative to positive. Every month the market said "inflation is high, buy gold" and lost money to the market that said "the Fed is winning, sell gold".
The inflation that is good for gold is inflation the central bank will not or cannot fight: rates held near zero while prices rise, so the real yield sinks below zero. That was 2020 and 2021, and gold set its then record in August 2020 with inflation nowhere in the data yet, because real yields had collapsed.
So the question to ask on every CPI morning is not "was it hot?" but "does this change the Fed path, and does it change it by more than it changes inflation expectations?" A hot print that adds a hike and leaves breakevens where they were is bearish for gold. A hot print the market thinks the Fed will look through, with breakevens rising and the front end not moving, is bullish for gold.
The rate odds page and /v1/rate-odds give you the Fed half of that question, priced from fed funds futures for every remaining meeting, and /v1/inflation gives you the breakeven half. On the day this was written, 2 December 2026, Helious priced a 96% chance of a 25 basis point hike at the 9 December meeting and 3.3 hikes in total through November 2027, against headline CPI of 3.7% for September and a 10-year breakeven of 2.2%. Read together: the market believes the Fed will bring inflation back, so real yields are rising, and gold is in the environment it likes least. The numbers will be different by the time you read this.
5. What are the best macro environments for being long gold?
Rank them by what they do to the real yield and the dollar. The best cases push both down. The worst push both up.
| Environment | Real yields | Dollar | Gold | What to watch |
|---|---|---|---|---|
| Easing cycle starting: cuts priced, inflation sticky | Falling | Weakening | Strongest case | Cut odds rising at the next meetings, breakevens steady or up |
| Policy behind the curve: inflation rising faster than rates | Falling, often negative | Mixed | Strong | Breakevens rising faster than the 2-year yield |
| Stagflation: growth slowing, inflation sticky, Fed stuck | Flat to falling | Mixed | Good | Weak ISM and payrolls beside hot core prints, hike odds fading |
| Flight to safety with yields falling | Falling | Rising | Good, despite the dollar | VIX up, 10-year down, gold and dollar up together |
| Debt and deficit worries, reserve diversification | Rising at the long end | Weakening | Good, slow | Weak long-bond auctions, term premium, central bank purchases |
| Liquidity crisis: everything sold for cash | Jumping | Spiking | Falls first, then recovers | MOVE and VIX spiking together, credit spreads gapping |
| Hiking cycle with a credible Fed | Rising | Rising | Worst case | Hike odds rising, breakevens flat, 2-year leading |
| Strong growth, low inflation, calm markets | High and stable | Firm | Weak, drifting | Low vol, equities grinding higher, nothing to hedge |
Two of these rows need a word. In a flight to safety, Treasuries are bought alongside gold, so yields fall and the real yield falls with them, which is why gold can rise against a rising dollar. In a liquidity crisis, nobody is buying shelter, everybody is raising cash, and gold is sold with everything else for the first days. The first weeks of March 2020 are the example. Gold then made a record within five months as the policy response drove real yields below zero. The same shock, two opposite gold trades, separated by which regime the market was in.
The /v1/context call, get_market_context on MCP, names the regime yields and stocks have been trading in and says whether the session is event-driven, event-adjacent, flow-driven or quiet, with the evidence. It is the call that says which row of this table you are in.
6. How do correlations work, and how should a gold trader read them?
A correlation is a number between -1 and +1 that says how much two series moved together over a window. It is computed on daily changes, never on levels: a yield on its change in basis points, a price on its percentage return. Two series that both trend upward for a year can have a correlation near zero on their daily moves, which is the number that matters for a position held for days.
For gold the pairs that matter are the dollar, the 10-year yield, the S&P 500 and the VIX. Most of the time gold against the dollar reads clearly negative, gold against the 10-year change reads negative, and gold against stocks and the VIX reads small and changes sign. That last point is the useful one: gold is not reliably a stock hedge. It hedges real yields and currency debasement, and it hedges equity fear only when that fear takes yields down with it.
Three rules for using the numbers.
- Read more than one window. Helious computes 30, 60, 90 and 120-day matrices. If gold against the dollar reads -0.6 over 120 days and -0.1 over 30, the usual relationship has gone quiet and something else, fear or official buying, is driving gold now. The gap between windows tells you the regime changed before the price does.
- A correlation is a description, not a rule. It tells you what has been happening. It breaks most often at the moment you start sizing positions on it. Use it to pick which market to watch, not as a signal to trade.
- Mind the hidden double position. Long gold and short the dollar is one trade in two accounts when the correlation is -0.7. Long gold and long Nasdaq futures is two bets on falling real yields. Correlation is how you find out you are twice your intended size. Our post on using correlations and news goes further.
The Helious correlation matrix covers the 10-year and 5-year Treasury yields, the S&P 500, the dollar index, gold, crude oil, a high-yield credit ETF and the VIX, with yields on their basis point change and prices on their return, and stamps the last session the returns run through. The high-yield row is a share price, not a credit spread, and the payload says so.
7. Which scheduled releases move XAU/USD the most?
The ones that change the expected path of the fed funds rate. In rough order of how much gold moves in the minutes after them:
- The FOMC decision and press conference. The rate, the statement and then forty-five minutes of the Chair. Gold often reverses its first move during the presser.
- CPI and core CPI. 8:30 am Eastern, mid-month. The market trades core to two decimals.
- Nonfarm payrolls and the unemployment rate, the first Friday.
- Core PCE, the Fed's own measure, at month end.
- Fed speakers between meetings, above all the Chair and the Governors.
- ISM manufacturing, ISM services, retail sales and weekly claims, which move the growth half of the stagflation question.
- Michigan inflation expectations, small in the data but the Fed quotes it.
What moves the price is the surprise, not the level. A core CPI print of 0.3% against a 0.2% forecast is a shock. The same 0.3% against a 0.3% forecast is nothing. Helious scores every print as a surprise z-score, the miss divided by how much that release normally misses by, so a 0.1 on CPI and a 90,000 beat on payrolls sit on the same ruler. The guide to reading a release explains the method and the calendar gives the times in your zone.
One practical note for CFD traders. Spreads on XAU/USD widen in the seconds around these prints, sometimes to several times normal, and stops fill at the wider price. Know the time, and have the decision to be in or out made before 8:29.
8. Where does gold's own volatility fit?
GVZ is the gold volatility index, the implied volatility of options on the largest gold ETF, and it is gold's equivalent of the VIX. It tells you what the options market expects gold to move over the next month, as an annualised percentage.
Use it for size, not direction. When GVZ sits at its 90th percentile of the past year, a position sized for a normal month is carrying two or three times its normal risk, and a stop placed at a normal distance is inside the noise. Traders typically halve the size or widen the stop, and expect the broker's margin requirement on gold CFDs to rise, because brokers watch the same number.
Helious puts GVZ on the vol board beside the VIX, VXN, OVX and MOVE, each with its one-year percentile and its low and high, and /v1/vol returns the same rows. Our post on VIX, VVIX and implied volatility explains how to read a percentile.
9. How do I get this data beside MT4, MT5 or TradingView?
Three routes, because the platforms differ in what they allow.
TradingView
Pine Script cannot call an outside API, so nothing will put a Helious number on a TradingView chart directly. Two things work. Keep the Helious terminal open beside the chart, with the calendar, the rate odds and the context read on one screen. Or let TradingView alerts send a webhook to a small server of yours, and have that server call Helious before it decides whether to act, so a gold alert can check the rate odds and the day's surprise score before it fires.
MetaTrader 5 and MetaTrader 4
Both can call the REST API from an Expert Advisor or a script with WebRequest, once you add https://api.helious.io to the allowed URLs under Tools, Options, Expert Advisors. An indicator cannot call it; an EA can. This MQL5 fragment reads the cross-asset context and prints it to the Experts log:
string url = "https://api.helious.io/v1/context";
string headers = "Authorization: Bearer hel_your_key\r\n";
char body[], result[];
string result_headers;
int code = WebRequest("GET", url, headers, 5000, body, result, result_headers);
if (code == 200)
Print(CharArrayToString(result));
else
Print("Helious answered ", code, ", last error ", GetLastError());
From there, parse the JSON for the gold row and the driver read, or take the summary field, which is already a sentence. The same call with /v1/rate-odds gives the hike or cut probability per meeting, which is the one number worth having inside an EA that trades gold around the FOMC.
An AI assistant beside the chart
Connect Claude, ChatGPT or Claude Code to the Helious MCP server and ask in plain words: "Why is gold down today, and what is the 60-day correlation between gold and the dollar?" The assistant calls get_market_context and get_correlations and answers with the numbers and the source page. In Claude Code the connection is one line:
claude mcp add --transport http helious https://api.helious.io/mcp \
--header "Authorization: Bearer hel_your_key"
Leave the header off to try it with no key, inside the sample allowance of 5 answers a conversation. The client guide covers Cursor, n8n and the OpenAI Agents SDK, and the MCP page has the connector for Claude and ChatGPT.
10. Which REST calls and MCP tools answer each gold question?
Every REST call lives under https://api.helious.io, takes the key as Authorization: Bearer hel_..., and answers with the same envelope: a summary sentence, a source block to cite, the data and a meta block with what it cost. Every MCP tool returns the same sentence first. The macro data API for gold (XAU/USD) page has a shorter version of this map, with a first call to run.
| Gold question | REST | MCP tool | Without a key |
|---|---|---|---|
| Why is gold moving right now? | GET /v1/context | get_market_context | Board withheld; a free key opens it an hour behind |
| Is the dollar strong today, against the whole basket? | GET /v1/fx | get_fx_board | Same |
| How is gold correlating with the dollar and yields? | GET /v1/correlations | get_correlations | Same |
| What is the Fed going to do? | GET /v1/rate-odds, /v1/rate-path | get_rate_odds, get_rate_path | Rate odds answer live on every plan |
| Where are nominal yields and the curve? | GET /v1/rates, /v1/treasury | get_rates_and_curve, get_treasury_curve | Board withheld; a free key opens it an hour behind |
| Where are breakevens and every inflation measure? | GET /v1/inflation | get_inflation | Latest reading answers |
| What prints this week, and when? | GET /v1/calendar | get_economic_calendar | Answers, prints an hour behind |
| What just printed, and how big was the surprise? | GET /v1/feed?categories=release | get_feed | Answers, an hour behind |
| How volatile is gold expected to be? | GET /v1/vol | get_vol_board | Board withheld; a free key opens it an hour behind |
| Every tick, every print, as it happens | wss://api.helious.io/v1/stream | No MCP equivalent | Delayed lane open to all; live on Pro |
A worked example. This reads the correlation matrix and prints gold's row from the default 60-day window:
import requests
r = requests.get("https://api.helious.io/v1/correlations",
headers={"Authorization": "Bearer hel_your_key"}).json()
print(r["summary"])
board = r["data"]["current"]["data"]
window = board["windows"][str(board["default"])]
gold = window["labels"].index("Gold")
for label, rho in zip(window["labels"], window["matrix"][gold]):
if label != "Gold" and rho is not None:
print(f"Gold vs {label}: {rho:+.2f}")
Index windows with "30" or "120" instead of the default to compare regimes. The history list beside current holds the past boards, as far back as your plan reads.
In /v1/context the gold row sits under cross_asset.commodities with name, last and change_pct. When the price is spot rather than the front-month future, the row says instrument: "spot", which is the number an XAU/USD CFD tracks. The dollar index sits under cross_asset.fx beside EUR/USD and USD/JPY, each Treasury tenor carries its yield in percent and the day's change in basis points, and driver carries the read on what is moving the session with the evidence it rests on.
On the stream, gold's id is GOLD and the dollar index is DXY. A prices message carries the whole board whenever anything on it moved, each quote with price, change_pct, asof and instrument, alongside the curve theme and spreads. The developer page has the message shapes.
11. What does it cost?
The calendar, the scored feed, the rate odds and the latest inflation reading answer with no key at all, with the feed and prints an hour behind, inside a sample allowance of 50 answers a month shared by everyone on your network and 5 answers in each MCP conversation. A free account key, no card, opens every price board an hour behind for 1 credit a call, with 100 credits a month, and fresh=1 on any one request answers it live for 5 credits. Pro at $39.99 a month serves everything live for 1 credit, with 3,000 credits a month and the live stream. The ladder is at GET /v1/access, the get_access_info tool and the pricing page, and making a key takes a minute.
Where to go next
- The inflation tracker has every measure with the breakevens, and the FOMC page has the odds for each meeting. The rate path shows every SOFR and fed funds contract priced now and a year ago.
- The glossary covers stagflation, the fed funds rate, basis points and the surprise z-score. The guide to the FOMC statement and dot plot covers the eight days a year that matter most to gold.
- We have also written about measuring currency strength, the inflation tracker, and the rate odds API.
Helious captures every US release the moment it prints, scores the surprise, prices the Fed path from the futures and publishes the cross-asset correlations, the dollar board and the vol board on one key, as pages, as REST and as MCP tools. Free to start; Pro is $39.99 a month.
Prices and plan details are as of December 2026 and can change. The rate odds and inflation figures quoted are the Helious readings on 2 December 2026 and will have moved. This post is general information, not financial advice. Gold CFDs are leveraged products and losses can exceed the margin posted.
Get a key and make the first call →