OPEN-SOURCE SCRIPT
Forex Cross-Asset Correlation Mapper

Forex Cross-Asset Correlation Mapper — an indicator for tracking correlations between major currency pairs and the US Dollar Index (DXY).
The indicator automatically detects the currency pair on the current chart and calculates a rolling Pearson correlation with DXY in real time.
What it shows:
Heatmap (matrix) — visualizes correlations between all enabled pairs. Green indicates positive correlation, red indicates negative. Cells with anomalies are highlighted with a yellow marker.
Correlation plot — the dynamic correlation of the current pair with DXY over time. The yellow line represents the mean value, red dashed lines mark the normal range boundaries (±N standard deviations). When an anomaly is detected, the chart background is highlighted in yellow.
Info panel — displays the current correlation value, mean, deviation in sigma units, and status (Normal / ANOMALY).
An anomaly is triggered when the correlation moves beyond N standard deviations from its rolling mean. This signals a breakdown in the typical relationship between the pair and the dollar.
Settings: correlation period, anomaly threshold, mean calculation period, enable/disable each pair individually.
Supported pairs: EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, USDCHF, NZDUSD + DXY (DX1!).
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
🎉 Join our FREE open Telegram channel! Everyone welcome! 📱✨ t.me/smart_day_trader
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
🎉 Join our FREE open Telegram channel! Everyone welcome! 📱✨ t.me/smart_day_trader
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.