OPEN-SOURCE SCRIPT

Correlation MA – 15 Assets + Average (Optional)

415
This indicator calculates the moving average of the correlation coefficient between your charted asset and up to 15 user-selected symbols. It helps identify uncorrelated or inversely correlated assets for diversification, pair trading, or hedging.

Features:
✅ Compare your current chart against up to 15 assets

✅ Toggle assets on/off individually

✅ Custom correlation and MA lengths

✅ Real-time average correlation line across enabled assets

✅ Horizontal lines at +1, 0, and -1 for easy visual reference

Ideal for:
Portfolio diversification analysis

Finding low-correlation stocks

Mean-reversion & pair trading setups

Crypto, equities, ETFs

To use: set the benchmark chart (e.g. TSLA), choose up to 15 assets, and adjust settings as needed. Look for assets with correlation near 0 or negative values for uncorrelated performance.

免责声明

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