OPEN-SOURCE SCRIPT
8-Year Cycle

8-Year Cycle Indicator — Description
Overview:
The 8-Year Cycle Indicator visually highlights repeating 8-year macro cycles on a chart, commonly used for gold, miners, or other long-term assets. It helps traders and investors understand early, mid, and late phases of each cycle to better plan positioning and risk management.
Features:
Each cycle is 8 years long by default.
Each year in the cycle can be assigned a custom color for granular visualization.
The last 4 years of a cycle can optionally be highlighted to indicate the late-cycle phase, historically associated with peaks and higher volatility.
Vertical lines mark the start of each cycle.
Labels display the full cycle period (e.g., 1981–1988).
Background shading per year makes it easy to distinguish early, mid, and late cycle stages.
Use Cases:
Identifying accumulation and topping periods in gold or related assets.
Understanding long-term macro trends.
Providing visual context for risk management in multi-year cycles.
Complementing other technical or macro indicators for strategic positioning.
Overview:
The 8-Year Cycle Indicator visually highlights repeating 8-year macro cycles on a chart, commonly used for gold, miners, or other long-term assets. It helps traders and investors understand early, mid, and late phases of each cycle to better plan positioning and risk management.
Features:
Each cycle is 8 years long by default.
Each year in the cycle can be assigned a custom color for granular visualization.
The last 4 years of a cycle can optionally be highlighted to indicate the late-cycle phase, historically associated with peaks and higher volatility.
Vertical lines mark the start of each cycle.
Labels display the full cycle period (e.g., 1981–1988).
Background shading per year makes it easy to distinguish early, mid, and late cycle stages.
Use Cases:
Identifying accumulation and topping periods in gold or related assets.
Understanding long-term macro trends.
Providing visual context for risk management in multi-year cycles.
Complementing other technical or macro indicators for strategic positioning.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.