I'm pleased to introduce this script in honor of the new array functions introduced to PineScript version 4.0. This update is a long time coming and opens the door to amazing scripting possibilities!
Definition
Named after Charles Spearman and denoted by the Greek letter ‘ρ’ (rho), the Spearman rank correlation coefficient is the nonparametric version of the Pearson correlation coefficient. Use the Spearman rank correlation when you have two ranked variables, and you want to see whether the two variables covary. That is, as one variable increases/decreases, the other variable tends to increase/decrease respectively.
It is best used to discover if two variables (and in this first version of the indicator, two ticker symbols) increase and decrease together. There are advantages to using this version of correlation vs. the Pearson R.
Interpretation
The value oscillates between +1 and -1.
Definition
Named after Charles Spearman and denoted by the Greek letter ‘ρ’ (rho), the Spearman rank correlation coefficient is the nonparametric version of the Pearson correlation coefficient. Use the Spearman rank correlation when you have two ranked variables, and you want to see whether the two variables covary. That is, as one variable increases/decreases, the other variable tends to increase/decrease respectively.
It is best used to discover if two variables (and in this first version of the indicator, two ticker symbols) increase and decrease together. There are advantages to using this version of correlation vs. the Pearson R.
Interpretation
The value oscillates between +1 and -1.
- A value of +1 means the two variables are perfectly correlated, that is they are increasing and decreasing together in perfect harmony.
- A value of -1 means the two variables exhibit a perfect negative correlation, that is they increase and decrease oppositely.
- A value of zero means the two variables are not correlated at all (noise).
릴리즈 노트
- Removed the 'lookahead = true' parameter from the security function, not needed.
- Fixed logic of duplicates to be more straightforward.
릴리즈 노트
- Fixed issue with hLines.
릴리즈 노트
- Updated symbol input to input.symbol.
릴리즈 노트
- Fixed -1 index out of bounds exception.
릴리즈 노트
- Removed index out of bound corner cases.
릴리즈 노트
- Added primary source option. The source input that is correlated to the selected symbol's closing price. By default the close of the chart's symbol is correlated against the close of the selected symbol below, however an alternate source can be used to correlated against the selected symbol, such as an indicator on the chart.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Find the edge.
Website: daily-edge.com
Twitter: twitter.com/dailyEdgeGroup
Youtube: youtube.com/c/TheDailyEdgeTradingGroup
Telegram: t.me/mortdiggiddy
Paypal: paypal.me/mortdiggiddy
Website: daily-edge.com
Twitter: twitter.com/dailyEdgeGroup
Youtube: youtube.com/c/TheDailyEdgeTradingGroup
Telegram: t.me/mortdiggiddy
Paypal: paypal.me/mortdiggiddy
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Find the edge.
Website: daily-edge.com
Twitter: twitter.com/dailyEdgeGroup
Youtube: youtube.com/c/TheDailyEdgeTradingGroup
Telegram: t.me/mortdiggiddy
Paypal: paypal.me/mortdiggiddy
Website: daily-edge.com
Twitter: twitter.com/dailyEdgeGroup
Youtube: youtube.com/c/TheDailyEdgeTradingGroup
Telegram: t.me/mortdiggiddy
Paypal: paypal.me/mortdiggiddy
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
