OPEN-SOURCE SCRIPT

Hashem Correlation Coefficient

Updated
Correlation Coefficient

Core Code from: tradingview.com/u/LazyBear


This indicator Show Correlation between the Current Ticker & timeframe and a Customizable Ticker. After adding the indicator you can change the second ticker in the settings.

The Correlation Coeff is between -1 to 1 which 1 means 100% correlation and -1 means -100% correlation (Inverse Correlation).

The color of the area changes when:
Blue : CC > 0.5
Aqua : CC > 0.75
Purple : CC < -0.5
Red : CC < -0.75
Release Notes
Code Tweaks.
Centered OscillatorscoefficientcorrelationCorrelation Coefficient (CC)hasheminversecorrelationMoving AveragesOscillatorssma

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Without Risk and Position Management, You WILL Lose Money.
Also on:

Disclaimer