OPEN-SOURCE SCRIPT
Rotation Cycles Dashboard Overlay

Rotation Cycles Dashboard — Overlay
This indicator identifies four market-cycle phases and displays the current phase in a compact dashboard directly on the price chart.
It is based on the original “Rotation Cycles Graph” concept by VanHe1sing. This modified version uses corrected rolling Z-score normalization, Pine Script v6, and a fixed-size overlay dashboard.
HOW IT WORKS
The indicator calculates two normalized variables:
1. Relative Level
The closing price is converted into a rolling Z-score:
Z-score = (Price − Moving Average) / Standard Deviation
The Z-score is then smoothed using a Hull Moving Average.
A positive Level value indicates that the instrument is trading above its normalized mean, while a negative value indicates that it is trading below its normalized mean.
2. Momentum
Momentum measures the change in the smoothed Z-score over the selected number of bars.
A positive Momentum value indicates improving relative strength. A negative Momentum value indicates weakening relative strength.
Both values are compressed into an approximate range between −1 and +1 to create a stable cycle classification.
CYCLE PHASES
GROWING
Level is positive and Momentum is positive.
The instrument is above its normalized mean and continues to strengthen.
WEAKENING
Level is positive and Momentum is negative.
The instrument remains above its normalized mean, but momentum is deteriorating.
CONTRACTION
Level is negative and Momentum is negative.
The instrument is below its normalized mean and continues to weaken.
RECOVERY
Level is negative and Momentum is positive.
The instrument remains below its normalized mean, but momentum is improving.
DASHBOARD
The fixed-size dashboard displays:
• Current cycle phase
• Relative Level
• Momentum
• Number of bars spent in the current phase
• Cycle strength
Cycle strength measures the distance of the Level and Momentum coordinates from the neutral center. A higher percentage indicates a more developed phase, while a lower percentage indicates that the instrument is closer to a phase transition.
SETTINGS
Z-Score Length
Defines the rolling period used to calculate the price mean and standard deviation.
Z-Score Smoothing
Defines the Hull Moving Average smoothing period applied to the Z-score.
Momentum Length
Defines the number of bars used to measure the change in the smoothed Z-score.
Level Compression
Controls the sensitivity of the Relative Level reading. Higher values keep the Level closer to zero.
Momentum Compression
Controls the sensitivity of the Momentum reading. Higher values keep Momentum closer to zero.
Dashboard Position
Allows the dashboard to be placed in different corners or sides of the chart.
OPTIONAL VISUAL SETTINGS
• Color price bars according to the current cycle phase
• Apply a subtle chart-background tint according to the current phase
ALERTS
Alerts are available when the indicator enters a new phase:
• Growing
• Weakening
• Contraction
• Recovery
Alerts trigger only when a phase transition occurs, rather than on every bar within the same phase.
USAGE
The indicator can be used on stocks, indices, futures, cryptocurrencies, commodities, currencies, and other chart symbols.
It is designed as a market-cycle and momentum-classification tool. It may help identify strengthening, weakening, contraction, and recovery conditions across different timeframes.
The indicator does not predict exact market tops or bottoms. Phase changes may occur after price has already started moving, and short-lived transitions may occur in volatile or sideways markets.
For best results, combine the indicator with:
• Market structure
• Support and resistance
• Trend analysis
• Volume
• Relative strength
• Risk management
CREDITS
Original concept and source code:
VanHe1sing — “Rotation Cycles Graph”
Modified version includes:
• Correct rolling standard-deviation calculation
• Revised Z-score normalization
• Separate Momentum calculation
• Soft value compression
• Pine Script v6 conversion
• Fixed-size price-chart overlay dashboard
• Phase-duration and cycle-strength metrics
• Phase-transition alerts
DISCLAIMER
This indicator is provided for informational and educational purposes only. It does not constitute financial or investment advice.
Past performance and historical cycle behavior do not guarantee future results. Users should perform their own analysis and use appropriate risk management.
This indicator identifies four market-cycle phases and displays the current phase in a compact dashboard directly on the price chart.
It is based on the original “Rotation Cycles Graph” concept by VanHe1sing. This modified version uses corrected rolling Z-score normalization, Pine Script v6, and a fixed-size overlay dashboard.
HOW IT WORKS
The indicator calculates two normalized variables:
1. Relative Level
The closing price is converted into a rolling Z-score:
Z-score = (Price − Moving Average) / Standard Deviation
The Z-score is then smoothed using a Hull Moving Average.
A positive Level value indicates that the instrument is trading above its normalized mean, while a negative value indicates that it is trading below its normalized mean.
2. Momentum
Momentum measures the change in the smoothed Z-score over the selected number of bars.
A positive Momentum value indicates improving relative strength. A negative Momentum value indicates weakening relative strength.
Both values are compressed into an approximate range between −1 and +1 to create a stable cycle classification.
CYCLE PHASES
GROWING
Level is positive and Momentum is positive.
The instrument is above its normalized mean and continues to strengthen.
WEAKENING
Level is positive and Momentum is negative.
The instrument remains above its normalized mean, but momentum is deteriorating.
CONTRACTION
Level is negative and Momentum is negative.
The instrument is below its normalized mean and continues to weaken.
RECOVERY
Level is negative and Momentum is positive.
The instrument remains below its normalized mean, but momentum is improving.
DASHBOARD
The fixed-size dashboard displays:
• Current cycle phase
• Relative Level
• Momentum
• Number of bars spent in the current phase
• Cycle strength
Cycle strength measures the distance of the Level and Momentum coordinates from the neutral center. A higher percentage indicates a more developed phase, while a lower percentage indicates that the instrument is closer to a phase transition.
SETTINGS
Z-Score Length
Defines the rolling period used to calculate the price mean and standard deviation.
Z-Score Smoothing
Defines the Hull Moving Average smoothing period applied to the Z-score.
Momentum Length
Defines the number of bars used to measure the change in the smoothed Z-score.
Level Compression
Controls the sensitivity of the Relative Level reading. Higher values keep the Level closer to zero.
Momentum Compression
Controls the sensitivity of the Momentum reading. Higher values keep Momentum closer to zero.
Dashboard Position
Allows the dashboard to be placed in different corners or sides of the chart.
OPTIONAL VISUAL SETTINGS
• Color price bars according to the current cycle phase
• Apply a subtle chart-background tint according to the current phase
ALERTS
Alerts are available when the indicator enters a new phase:
• Growing
• Weakening
• Contraction
• Recovery
Alerts trigger only when a phase transition occurs, rather than on every bar within the same phase.
USAGE
The indicator can be used on stocks, indices, futures, cryptocurrencies, commodities, currencies, and other chart symbols.
It is designed as a market-cycle and momentum-classification tool. It may help identify strengthening, weakening, contraction, and recovery conditions across different timeframes.
The indicator does not predict exact market tops or bottoms. Phase changes may occur after price has already started moving, and short-lived transitions may occur in volatile or sideways markets.
For best results, combine the indicator with:
• Market structure
• Support and resistance
• Trend analysis
• Volume
• Relative strength
• Risk management
CREDITS
Original concept and source code:
VanHe1sing — “Rotation Cycles Graph”
Modified version includes:
• Correct rolling standard-deviation calculation
• Revised Z-score normalization
• Separate Momentum calculation
• Soft value compression
• Pine Script v6 conversion
• Fixed-size price-chart overlay dashboard
• Phase-duration and cycle-strength metrics
• Phase-transition alerts
DISCLAIMER
This indicator is provided for informational and educational purposes only. It does not constitute financial or investment advice.
Past performance and historical cycle behavior do not guarantee future results. Users should perform their own analysis and use appropriate risk management.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.