OPEN-SOURCE SCRIPT

STRX - Correlation Domination

292
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.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.