Pearson product-moment correlation coefficient

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Pearson product-moment correlation coefficient

Postby Apprentice » Sat Oct 06, 2012 4:18 am

Pearson product-moment correlation coefficient.png


Pearson product-moment correlation coefficient ( PPMCC or PCC, Pearson's r ), is a measure of the correlation (linear dependence) between two variables X and Y, giving a value between +1 and −1.
We distinguish, 0 do not correlate, 1 correlation, -1 Negativ correlation.

PPMCC.lua
(6.5 KiB) Downloaded 881 times


The indicator was revised and updated
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36427
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Pearson product-moment correlation coefficient

Postby Coondawg71 » Tue Aug 13, 2013 5:25 am

Is it possible to offer this indicator with a multi period function? As of now the indicator offers one period with two different currency pairs for comparison. Default settings do not offer any information. Can we request two different periods with the same currency pair for each period so as to compare different time frames. This would assist in finding divergence among price bars.

example:

5 minute price chart of Euro/USD with first period set to 12 (one hour) indicator plotting versus 48 period (four hour). When 12 period plotting is overly extended beyond 48 period, divergence is obvious and precise.

Thanks,

sjc
User avatar
Coondawg71
FXCodeBase: Graduate
 
Posts: 324
Joined: Sat Jan 15, 2011 11:45 am


Re: Pearson product-moment correlation coefficient

Postby Alexander.Gettinger » Thu Sep 26, 2013 11:34 am

MQL4 version of Pearson product-moment correlation coefficient: viewtopic.php?f=38&t=59584.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk



Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 36 guests