OPEN-SOURCE SCRIPT

Gold Macro Bias Table

371
Gold Macro Bias Table

Gold Macro Bias Table is designed to provide a fast, structured and multi-dimensional overview of the current gold market environment. The main goal is to help traders quickly assess how different macroeconomic, intermarket, risk, volatility, volume and technical factors are currently aligned.

Gold is influenced by many different drivers. Real yields, the US dollar, Treasury yields, bond-market behavior, foreign exchange dynamics, silver, gold miners, credit markets, volatility and technical momentum can all affect price behavior. Instead of analyzing every related market separately, this indicator brings the most relevant inputs together in one compact dashboard.

The indicator is not intended to predict future price movement. It is a decision-support tool that helps traders understand whether the current market background is more supportive, neutral or opposing for gold.

Data Sources and Market Inputs

The script uses TradingView market data based on the symbols selected in the settings. The default symbols can be adjusted by the user.

Real Yield:
The real yield input is used to represent inflation-adjusted interest-rate pressure. Rising real yields are generally negative for gold because they increase the opportunity cost of holding a non-yielding asset. Falling real yields are generally supportive for gold.

DXY:
The US Dollar Index is used as a broad measure of US dollar strength. A stronger dollar is usually a headwind for gold, while a weaker dollar can support gold prices.

US10Y and US02Y:
US Treasury yields are used to measure interest-rate pressure across different parts of the yield curve. Rising yields can pressure gold, while falling yields can support gold, especially when combined with a weaker US dollar.

TLT:
TLT is used as a proxy for long-duration US Treasury bonds. Strength in TLT often reflects falling long-term yields, which can be supportive for gold.

USDJPY:
USDJPY is included as a rate-sensitive and dollar-sensitive FX input. A rising USDJPY can often reflect stronger US rate pressure or broader US dollar strength, which may be negative for gold.

Silver:
Silver is used as a precious-metals confirmation factor. Strength in silver can confirm broader demand for precious metals, while weakness may indicate a lack of confirmation.

GDX:
GDX represents gold miners. Miner strength can confirm institutional appetite for the gold sector, while miner weakness can warn that gold strength is not broadly supported.

VIX:
The VIX is used as a volatility and risk-sentiment input. Higher volatility can increase safe-haven demand, but very elevated volatility also means higher trading risk.

HYG:
HYG is used as a credit-risk proxy. Strength in high-yield credit usually points to more risk-on conditions, while weakness can indicate stress in credit markets.

Scoring and Weighting

The table compares each selected input with its moving average and assigns a score depending on whether the current condition is considered supportive or opposing for gold.

The score values and weightings are fully adjustable in the settings. This allows each trader to adapt the model according to personal experience, trading style and individual interpretation of how important each factor is for the current market environment.

The total score is displayed as the Macro Gold Bias.

Volatility

The volatility section compares the current ATR percentage with its own average. This helps identify whether the market is currently calm, normal, elevated or extreme. The volatility reading is used as additional context, especially when market conditions become unstable or risk expands quickly.

Volume and Delta

The volume section provides a quick overview of session volume, estimated session ask volume, estimated session bid volume and estimated session delta.

The intraday delta values for 1m, 5m, 15m and 1h are calculated from the available TradingView chart data. These values are not true exchange bid/ask volume and should not be interpreted as real order-book flow.

They are tick-volume-based approximations designed to give the trader a practical feeling for current market behavior, volume pressure and whether recent activity appears more buy-side or sell-side dominated.

Average Volume and Delta

The average row compares the current session and intraday delta behavior with configurable lookback periods. The session average volume lookback and the delta lookbacks for 1m, 5m, 15m and 1h can be adjusted in the settings.

This helps put current activity into context instead of relying on isolated volume or delta values.

Technical Gold Bias

The technical section uses TradingView’s built-in Technical Ratings, often known from the TradingView Technical Rating gauge. It combines information from multiple moving averages and oscillators into a normalized technical reading.

This separates the technical condition of gold from the broader macro and intermarket environment.

Market Regime

The market regime section classifies the current environment into broader categories such as:

Safe Haven
Yield Pressure
Dollar Pressure
Inflation Hedge
Yield Relief
Mixed

This gives additional context behind the raw score and helps explain why the current environment may be supportive, opposing or mixed for gold.

Final Gold Bias

The final bias combines the macro score, technical rating, market regime and volatility context into one final interpretation. It is designed to provide a fast overview of whether current conditions are bullish, bearish, mixed or high risk.

Trend Strength

The trend strength score ranges from -10 to +10. It combines macro direction, technical direction and market regime support into a simple strength reading.

A positive value indicates a more supportive environment for gold, while a negative value indicates a more opposing environment.

Price Movement Alerts

The indicator includes configurable price movement alerts for gold and the selected macro symbols.

The purpose of these alerts is not to generate buy or sell signals. They are designed as warning signals when one or more monitored symbols exceed the user-defined percentage threshold.

This can be useful because related markets do not always react at the same speed. Some symbols may move earlier and provide a warning that the market environment is changing, while others may react later. These alerts can help traders recognize fast market movement, unstable conditions or situations where it may be necessary to reduce exposure or step out of the market.

TradingView alerts can be configured through the normal TradingView alert menu. Depending on the user’s TradingView settings, notifications can be sent by app, pop-up, email, webhook or other available alert actions.

Important Note

This indicator is not a standalone trading system and does not provide financial advice. It should be used together with price action, market structure, risk management and personal trade planning.

All readings depend on the selected symbols, the active data feed, the chosen timeframes and the user-defined settings.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.