仕事が完了した
実行時間2 時間
依頼者からのフィードバック
John knows his programming! And he did more than was expected. I can strongly recommend him to anyone who is looking for a programmer.
開発者からのフィードバック
Great customer, prompt communication, clear specs, recommended+
指定
I need help with a small piece of code that calculates the moving average of the Williams Percent Range indicator.
Here is the code:
ArrayResize(WPRArray, WPR_MAPeriod);
for (int j = 0; j < WPR_MAPeriod; j++)
{WPRArray[j] = iWPR(symbol, WPR_Timeframe, WPR_Period, j);
}
double WPR_Average = iMAOnArray(WPRArray, 0, WPR_MAPeriod, 0, WPR_MAMethod, 0);
WPR = DoubleToString(WPR_Average, 0);
It gives different values on the indicator on the chart and the value in the variable calculated for WPR, e.g.
Here the value on the indicator is -52,4541 where the value in the Variable WPR = -73 (rounded off)
And here is another example:
Value of the indicator = -63.5457 but the variable has the value -41(rounded off)
I have researched the issue and found that there is a 12 hour difference where the value in the variable lags the value of the indicator.
Here is a chart over 20 hours of the values of the indi and the var to illustrate:

応答済み
1
評価
プロジェクト
995
47%
仲裁
33
36%
/
36%
期限切れ
98
10%
仕事中
パブリッシュした人: 6 codes
2
評価
プロジェクト
136
14%
仲裁
43
21%
/
28%
期限切れ
14
10%
暇
パブリッシュした人: 2 codes
3
評価
プロジェクト
129
18%
仲裁
11
27%
/
55%
期限切れ
4
3%
暇
4
評価
プロジェクト
236
32%
仲裁
30
27%
/
30%
期限切れ
26
11%
暇
5
評価
プロジェクト
58
33%
仲裁
12
42%
/
42%
期限切れ
7
12%
暇
6
評価
プロジェクト
4
0%
仲裁
2
0%
/
100%
期限切れ
1
25%
暇
7
評価
プロジェクト
280
55%
仲裁
0
期限切れ
5
2%
暇
8
評価
プロジェクト
28
32%
仲裁
1
0%
/
0%
期限切れ
0
暇
パブリッシュした人: 1 code
9
評価
プロジェクト
24
17%
仲裁
15
20%
/
40%
期限切れ
6
25%
暇
10
評価
プロジェクト
1462
63%
仲裁
21
57%
/
10%
期限切れ
43
3%
暇
11
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
暇
12
評価
プロジェクト
46
28%
仲裁
9
0%
/
100%
期限切れ
7
15%
暇
13
評価
プロジェクト
4
0%
仲裁
1
100%
/
0%
期限切れ
0
暇
プロジェクト情報
予算
30+ USD
締め切り
最高 2 日

