OPEN-SOURCE SCRIPT
Zaktualizowano Copper_to_Gold_Ratio by Zeche

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
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
Informacje o Wersji
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
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.