Correlation [array's]

This script isn't about creating a correlation script with labels, there is a perfect working example of @Mango2Juice
(Correlation Matrix, which was inspired by @Daveatt's Correlation Matrix)

The intention was making it with the use of as less code as possible, looping through array's

The Pine correlation function doesn't work consistently in a local scope (loop), so I had to work around it

Inspired by @ZenAndTheArtOfTrading's Correlation Meter (using array.covariance and array.stdev) and
especially with the help of @RicardoSantos and @LonesomeTheBlue I've managed to do this

Symbols, timeframe, look-back period, colors and limits can be changed

There is always room for improvement, but I think it shows what is possible.

Many thanks to the people who I've mentioned, and of course to Tradingview!
(Without the Earth nothing can grow)


Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


500 Coins
nice lol
fikira rbower
@rbower, Glad it is noticed :)
Sometimes it happens the data remains on the screen after a bar close, there are several solutions,
but this one does the trick in some occasions
:) ;)
fikira RaimundoHenrique
fikira Chase37
@Chase37, Thank you!
Amazing !
fikira ichimokuakademi
@ichimokuakademi, Thanks!
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender Über Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Private Nachrichten Chat Abmelden