Lavoro terminato
Tempo di esecuzione 2 ore
Feedback del cliente
John knows his programming! And he did more than was expected. I can strongly recommend him to anyone who is looking for a programmer.
Feedback del dipendente
Great customer, prompt communication, clear specs, recommended+
Specifiche
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:

Con risposta
1
Valutazioni
Progetti
1006
47%
Arbitraggio
33
36%
/
36%
In ritardo
99
10%
In elaborazione
Pubblicati: 6 codici
2
Valutazioni
Progetti
136
14%
Arbitraggio
43
21%
/
28%
In ritardo
14
10%
Gratuito
Pubblicati: 2 codici
3
Valutazioni
Progetti
129
18%
Arbitraggio
11
27%
/
55%
In ritardo
4
3%
Gratuito
4
Valutazioni
Progetti
236
32%
Arbitraggio
30
27%
/
30%
In ritardo
26
11%
Gratuito
5
Valutazioni
Progetti
58
33%
Arbitraggio
12
42%
/
42%
In ritardo
7
12%
Gratuito
6
Valutazioni
Progetti
4
0%
Arbitraggio
2
0%
/
100%
In ritardo
1
25%
Gratuito
7
Valutazioni
Progetti
284
55%
Arbitraggio
0
In ritardo
5
2%
Gratuito
8
Valutazioni
Progetti
28
32%
Arbitraggio
1
0%
/
0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
9
Valutazioni
Progetti
24
17%
Arbitraggio
15
20%
/
40%
In ritardo
6
25%
Gratuito
10
Valutazioni
Progetti
1462
63%
Arbitraggio
21
57%
/
10%
In ritardo
43
3%
Gratuito
11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Valutazioni
Progetti
46
28%
Arbitraggio
9
0%
/
100%
In ritardo
7
15%
Gratuito
13
Valutazioni
Progetti
4
0%
Arbitraggio
1
100%
/
0%
In ritardo
0
Gratuito
Informazioni sul progetto
Budget
30+ USD
Scadenze
a 2 giorno(i)

