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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.