IntelTrading

Alferow_2active_correlation

An indicator showing the coefficient of linear correlation between two assets for the selected period. As the initial data, the following are set: the indicator of the candle, according to which the calculation is made (maximum, minimum, closing or opening); the period for analysis; two assets between which the correlation is considered. The output is a label with the value of the correlation coefficient.

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?