Biffy

r2 correlation coefficient

Biffy Updated   
made a quick script to compare r2 correlation coefficient, can change source and correlation component in inputs menu

example, here we can see that btc currently has a 0.85 correlation with eth vs usd when using simple moving avg on the daily (above 0.8 is positive correlation. below -0.8 is negitive correlation, and anything in between means there is no correlation)

note: if you wanted to compare with a different source like rsi, then you would need to reduce the length in the inputs menu

not an expert, i encourage doing your own research

biffy
Release Notes:
i realised that the correlation function doesn't account for negitive correlations, will look into how i can update to include this. for now just updated to correlated / not correlated
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?