Function Code for pearson correlation to use in MQL4 AND MQL5

MQL5 Bibliothèque Convertir

Tâche terminée

Temps d'exécution 4 heures
Commentaires du client
Well done! Fast and professional.
Commentaires de l'employé
Great man!

Spécifications

Hello there,

i need a function (usable in MQL4 and MQL5 - best, if the code is equal) for calculating the pearson correlation between two assets. The function must have the following format:

double pearson(double array &asset1,double array &asset2, int shift asset 1, int shift asset2, int bars to calculate)

{
// function code
return(pearsoncorrelation);
}

The return value must be double and between -1 and 1. The arrays containing close prices in various time frames.

I need the MQL4 (and MQL5) Source Code.

Thank you!

Répondu

1
Développeur 1
Évaluation
(304)
Projets
509
47%
Arbitrage
29
10% / 45%
En retard
138
27%
Gratuit
2
Développeur 2
Évaluation
(590)
Projets
789
71%
Arbitrage
9
33% / 33%
En retard
22
3%
Gratuit
3
Développeur 3
Évaluation
(236)
Projets
440
26%
Arbitrage
125
21% / 57%
En retard
96
22%
Travail
4
Développeur 4
Évaluation
(54)
Projets
53
17%
Arbitrage
7
0% / 100%
En retard
5
9%
Gratuit
5
Développeur 5
Évaluation
(24)
Projets
27
33%
Arbitrage
2
100% / 0%
En retard
1
4%
Gratuit
6
Développeur 6
Évaluation
(277)
Projets
334
55%
Arbitrage
14
36% / 29%
En retard
1
0%
Gratuit

Informations sur le projet

Budget
30 - 50 USD
TVA (19%): 5.7 - 9.5 USD
Total: 35.7 - 59.5 USD
Pour le développeur
27 - 45 USD
Délais
à 5 jour(s)