tartigradia

Correlation with P-Value & Confidence Interval (alt)

tartigradia 已更新   
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:
版本注释:
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.
版本注释:
Fix a small typo in a function that caused side effects (no difference in calculations, but useful to reuse the function elsewhere).
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?