OPEN-SOURCE SCRIPT

Correlation MA – 15 Assets + Average (Optional)

139
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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。