OPEN-SOURCE SCRIPT
已更新 Correlation Coefficient Table

This is a sample PineSript code implementation using Correlation Coefficient. It uses the ta.correlation library of Pinescript and calculates the correlation based on user input length. The results are then plotted on a table. The corr value displays the actual correlation coefficient value while the Corr Status displays the interpretation of the correlation coefficient values.
The script takes the following input

The Correlation Status column was based on this Interpretation:

For more information, read this article https://www.tradingview.com/scripts/correlationcoefficient/?solution=43000502022
The script takes the following input
- Source Symbol - This is the base symbol which will be used in calculating correlation coefficient. In my case, since i am looking more often on crypto. I defaulted it to BTCUSDT
- Symbol 1 - Symbol 5 - These are the coins that will be compared to our base symbol for correlation.
- Source - You can select on which price source you want to be calculated. By default this is set to candle close price.
- Length - The number of price bar to look back and retrieve correlation coefficient. Set to 20 bars by default.
- Table Settings - Since the correlation coefficient are displayed on a table. An option to customize the table settings are presented.
The Correlation Status column was based on this Interpretation:
For more information, read this article https://www.tradingview.com/scripts/correlationcoefficient/?solution=43000502022
發行說明
- Removed the plot function of the actual correlation coefficient value as it only adds noise to chart.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。