OPEN-SOURCE SCRIPT

Alvarium CC

382
Hoc indicatorem matricem coloratam viginti instrumentorum futurarum simultanee ostendit. Per coefficientem correlationis Pearsonianae super periodum definitam calculatum, relationem statisticam inter quodque par instrumentorum metitur et resultatum in tabula coloribus distincta in medio chartae depingit. Correlationes fortiter positivae viridi apparent, lectiones neutrales aurantiaco, et correlationes fortiter negativae rubro, cum undecim zonis coloris plene accommodabilibus praecisam potestatem visualem praebentibus. Viginti symbola singulatim per optiones indicatoris eliguntur, permittendo mercatori matricem ad quamcumque combinationem futurarum indicis aequitatis, mercium, monetae, reditus fixi, vel cryptocurrenciae aptare. Tum spatium temporis tum longitudo correlationis etiam mutabilia sunt, analysin per regimina diurna, hebdomadalia, vel intra diem permittentia.

This indicator displays a 20x20 correlation heatmap for up to 20 futures instruments simultaneously. Using the Pearson correlation coefficient calculated over a user-defined lookback period, it measures the statistical relationship between each pair of instruments and renders the result as a color-coded table centered on the chart. Strong positive correlations appear in green, neutral readings in orange, and strong negative correlations in red, with 11 fully customizable color bands giving granular control over the visual representation. All 20 symbols are individually selectable via the indicator settings, allowing the trader to tailor the matrix to any combination of equity index, commodity, currency, fixed income, or cryptocurrency futures. The timeframe and correlation length are also adjustable, enabling analysis across daily, weekly, or intraday regimes.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.