TradingView
tartigradia
2022年10月10日下午5點44分

Correlation with P-Value & Confidence Interval (alt) 

Bitcoin all time history indexINDEX

描述

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:
tradingview.com/script/AFYOSCoG-Correlation-with-P-Value-Confidence-Interval-pig/

發布通知

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).
評論
NEKSUS_
Please, make MTF version.
tartigradia
@NEKSUS_, Thank you for your suggestion! I just implemented MTF now, please update your indicator to the last version, you will be able to choose the time resolution you want :-) However note that I had to remove the panel as otherwise the script would not compile due to side effects.
NEKSUS_
@tartigradia, Thanks!
NEKSUS_
@tartigradia, I don't know if this is possible or not, but if possible, please make it so that when using the indicator on m1 and selecting H1 in the settings, the indicator is updated once an hour.
On the minute TF, the line from H1 breaks due to an update on every minute bar.
tartigradia
@NEKSUS_, Mmmm I'm not sure what is the issue you experience, I cannot reproduce it (I use TradingView Desktop app), but did you try enabling/disabling the gaps option? It may help with repainting. Otherwise, unfortunately this sounds like a TradingView bug, it should not behave like that. Maybe you can send a bug report to TradingView's support team?
kamlesh512
good to find someone recall balipore works, i missed his variance ratio test , i saved to my set up now tv completly not supprt it can you make it too
更多