OPEN-SOURCE SCRIPT

Correlation Coefficient

557
📊 Correlation Coefficient (CC)

This indicator measures the statistical correlation between two selected securities over a defined period, scaled from -100 to +100.


It helps you quickly assess whether assets are moving:

Together (positive correlation)

Opposite (negative correlation)

Independently (zero correlation)

🔧 Features:

Select any two symbols (default: NIFTY & BANKNIFTY)

Adjustable length parameter for short-term or long-term correlation analysis

Clean, color-coded plot with horizontal levels to easily identify key correlation zones

📈 Useful For:

Pair trading setups

Hedging strategies

Detecting market regime shifts or intermarket divergences

⚠️ Disclaimer: This is not trading or investment advice.
This indicator is intended for informational purposes only and is not recommended for making
direct trading decisions.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。