OPEN-SOURCE SCRIPT

Correlation Matrix

10 287
Returns a 4x4 correlation matrix between various user-selected symbols. Users can change the window of the correlation with the setting length.

Correlation matrices can be useful to see the linear relationship between various symbols, this is an important tool for diversification.

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.