tartigradia

Correlation with P-Value & Confidence Interval (alt)

tartigradia Uppdaterad   
Shows the Pearson correlation between two symbols, including statistical significance test.

This is a fork of the original script by Balipour, with the addition of EMA that can be used instead of SMA in the Pearson correlation as an attempt to capture correlation trend changes more quickly, and conversion to pinescript v5. In the end, the EMA does not help much, for a faster capture of correlation trend changes, another kind of correlation is necessary, such as sign test correlation (another one of my indicators implement this idea).

Please show the original indicator's author some love if you appreciate this work:
Versionsinformation:
Update: add support for Multi-Timeframe resolution (MTF) per request, but had to remove the Panel to avoid side effects, otherwise PineScript would not compile.
Versionsinformation:
Fix a small typo in a function that caused side effects (no difference in calculations, but useful to reuse the function elsewhere).
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?