OPEN-SOURCE SCRIPT

Relative Correlation Regime

236
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.

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.