Function Code for pearson correlation to use in MQL4 AND MQL5

MQL5 资料库 转化中

工作已完成

执行时间4 小时
客户反馈
Well done! Fast and professional.
员工反馈
Great man!

指定

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!

反馈

1
开发者 1
等级
(300)
项目
504
47%
仲裁
28
11% / 43%
逾期
138
27%
工作中
2
开发者 2
等级
(590)
项目
789
71%
仲裁
9
33% / 33%
逾期
22
3%
空闲
3
开发者 3
等级
(231)
项目
433
27%
仲裁
122
21% / 57%
逾期
96
22%
工作中
4
开发者 4
等级
(54)
项目
53
17%
仲裁
7
0% / 100%
逾期
5
9%
空闲
5
开发者 5
等级
(24)
项目
27
33%
仲裁
2
100% / 0%
逾期
1
4%
空闲
6
开发者 6
等级
(277)
项目
334
55%
仲裁
14
36% / 29%
逾期
1
0%
空闲

项目信息

预算
30 - 50 USD
VAT (19%): 5.7 - 9.5 USD
总计: 35.7 - 59.5 USD
开发人员
27 - 45 USD
截止日期
 5 天