Correlation coefficient indicator in MT4 ?

 

Hi all,

In tradingview there's an indicator called "Correlation coefficient", which represents the correlation between 2 Symbols (the chart symbol and another chosen symbol). See image attached.

It ranges from -1.0 to +1.0 . If positive means the 2 symbols move in tandem, else they are moving in opposite directions.

Can't see the formula used, so I cannot replicate it in MT4.

Has anyone seen a similar indicator in MT4 ? 

Help is really appreciated. Thanks.

Joao.

 

Excellent, thanks whroeder1 !!!

I'm going to try it out. Will let you know.