OPEN-SOURCE SCRIPT

STRX - Correlation Domination

This indicator displays the correlation among three selected assets (for example, Gold, Dollar Index, and Nasdaq) on a custom timeframe. A table positioned at the top-right corner of the chart lets you quickly see the correlation between:

Asset 1 vs Asset 2
Asset 1 vs Asset 3
Asset 2 vs Asset 3

Correlations are calculated using the Pearson correlation function (ta.correlation). If the correlation is greater than or equal to 0.4, the value appears in green (strong positive correlation). If it is less than or equal to -0.4, it appears in red (strong negative correlation). Otherwise, it is displayed in yellow (weak correlation).

Multi-asset and multi-timeframe: Compare up to three instruments at once on your chosen timeframe.

Customizable period: Use the “Correlation Period” setting to adjust the correlation calculation window.

Clear table format: The results are immediately visible in an easy-to-read table.

Disclaimer: This script is provided solely for educational and informational purposes. It does not constitute a recommendation or an invitation to invest. Use it as an additional resource and always conduct thorough market analysis before opening any trading positions. Past performance does not guarantee future results.
statistics

开源脚本

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

想在图表上使用此脚本?


更多:

免责声明