OPEN-SOURCE SCRIPT

Asset Correlation Tool v2

已更新
Correlation amongst assets is the degree to which they move in tandem. This indicator measures correlation between different assets. Why is that important?

To any investor diversification is a very important technique for reducing risk. The problem is that most misunderstand it. Most people tend to think diversification is achieved simply by investing in a variety of assets instead of just a few.

This is wrong.

The whole point of diversification is to be invested in assets with different growth drivers. A portfolio consisting of +20 highly correlated assets (Your cryptobags, probably) is the OPPOSITE of diversification. This is taking on risk without being compensated for it. Which is contradictory to the fundamental reason for why you do invest in assets.

Proper diversification is achieved when you reduce the correlation between the assets in your portfolio.

HOW TO USE
To use this tool, add it to your favorites and then add it to your chart. It will by default only show the correlation between an altcoin index and the current chart symbol.

If you go to its settings you can add its correlation to the stock market, gold and you can also easily customize it to any security you want.

0.5 to 1.0: Strong positive correlation
Around 0: Little to no correlation
-0.5 to -1.0: Strong negative correlation

Took a few hours to build this one. It would be super helpful if you can take a look at the index I used - I'm convinced there are better and more accurate methods to this one. But best I could come up with

Later I will evolve this one to an oscillator that measures the relation between cross coin correlations and volatility. Inspired by some great work by cryptorae

If you have any requests or ideas please shoot

Updates v0.2
- Added altcoin index
- Changed some calculations
- Restructed code
版本注释
Improved some code
correlationCorrelation Coefficient (CC)Oscillators

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明