Forex Correlations Heatmap

3 811
Hello friends,

This tool is built for forex traders who want a clean, visual way to understand how currency pairs move together. It builds a color-coded correlation matrix between your current chart symbol and a customizable list of forex pairs, helping you quickly spot strong positive or negative relationships across majors, crosses, and extended FX watchlists.

🛠️ How It Works

You provide a comma-separated watchlist of forex tickers (e.g., EURUSD,USDJPY,GBPUSD,...). The script then:
  • Filters this list based on your selected Display Mode (All pairs, or only AUD, CAD, CHF, EUR, GBP, JPY, NZD, or USD-related pairs).
  • Paginates long watchlists into pages of up to 40 tickers, so you can scroll through large FX universes without overloading the chart.
  • For each pair on the current page, it calculates the Pearson correlation over a user-defined lookback window, using your chosen price source (close, HL2, HLC3, etc. via the custom source selector).
  • The resulting correlations are plotted as a heatmap: each cell's color and intensity reflect the strength and direction of the relationship.
You can switch between multiple professional color palettes to better match your visual preferences and quickly distinguish strong positive, strong negative, and neutral correlations.

🔥 Key Features
  • Custom watchlist input via a simple text area (paste or type your pairs)
  • Pagination support - view up to 40 symbols per page for smoother performance
  • Flexible Display Modes: All pairs, or focused views like AUD pairs, EUR pairs, USD pairs, etc.
  • Configurable correlation lookback period
  • Customizable correlation source via an advanced source selector module
  • Multiple professional color palettes: Blue/Red, Blue/White/Red, Green/Pink, Green/Red, Green/Yellow/Red, Purple/Orange, Spectral, Viridis
  • Clear visual mapping of correlation strength and sign through color intensity
👋 Good luck and happy trading!

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.