OPEN-SOURCE SCRIPT

correlation

631
Choose two assets using the inputs, and plot their correlation. The correlation between their percentage returns is shown in purple, and the returns themselves are shown as small histograms.

By default, the correlation is computed over 12 periods, but you can adjust this as well using the inputs.

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.