OPEN-SOURCE SCRIPT
Updated

Copper_to_Gold_Ratio by Zeche

97
Cu/Au Ratio – LINES + LABELS is a clean, macro-oriented indicator built around the Copper/Gold price ratio — a well-known gauge of economic strength, market sentiment, and shifts between risk-taking and risk-aversion.

The script calculates:

the 120-day SMA of the Copper/Gold ratio

the standard deviation over the same period

the ±1σ, ±1.5σ, and ±2σ deviation bands

automatic labels on the last bar for maximum clarity

The design is minimalistic and visually optimized so users can quickly understand where the current ratio sits relative to long-term norms. The deviation zones help highlight moments when the market transitions into RISK-ON or RISK-OFF behavior.

How to interpret the signals:

Above +2σ → RISK-OFF environment (defensive tone, macro stress)

Below −2σ → RISK-ON environment (increased risk appetite)

±1σ bands represent normal cyclical movements

The SMA acts as the long-term equilibrium level
Release Notes
Cu/Au Ratio – LINES + LABELS is a clean, macro-oriented indicator built around the Copper/Gold price ratio — a well-known gauge of economic strength, market sentiment, and shifts between risk-taking and risk-aversion.

The script calculates:

the 120-day SMA of the Copper/Gold ratio

the standard deviation over the same period

the ±1σ, ±1.5σ, and ±2σ deviation bands

automatic labels on the last bar for maximum clarity

The design is minimalistic and visually optimized so users can quickly understand where the current ratio sits relative to long-term norms. The deviation zones help highlight moments when the market transitions into RISK-ON or RISK-OFF behavior.

How to interpret the signals:

Above +2σ → RISK-OFF environment (defensive tone, macro stress)

Below −2σ → RISK-ON environment (increased risk appetite)

±1σ bands represent normal cyclical movements

The SMA acts as the long-term equilibrium level

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.