OPEN-SOURCE SCRIPT
Relative Correlation Regime

A general-purpose tool for measuring the rolling relationship between two markets.
The indicator calculates correlation from price returns and classifies the current relationship into five regimes: Strong Positive, Positive, Neutral, Negative, and Strong Negative.
I designed it as a simple way to observe when relationships between markets strengthen, weaken, or diverge.
It can be applied across forex, commodities, indices, and crypto markets.
This indicator is intended for market research and analysis, not as a standalone trading signal.
The indicator calculates correlation from price returns and classifies the current relationship into five regimes: Strong Positive, Positive, Neutral, Negative, and Strong Negative.
I designed it as a simple way to observe when relationships between markets strengthen, weaken, or diverge.
It can be applied across forex, commodities, indices, and crypto markets.
This indicator is intended for market research and analysis, not as a standalone trading signal.
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.