I use history data of auto trade system to test the function,the value of RSV is zero,Please tell me why?
If anyone can give me answer?
What is RSV? Use print to check the value of i.
RSV is a buffer, if I set a element of it to a value, for example,
RSV = 50,I print it, it displays 0, why?
it is a global variable
OK, if it's not a Indicator buffer you have to define how many elements are in the Array, otherwise it has 0 elements and then all it's values . . . all 0 of them, are 0.
You need to do this . . .
double RSV; <------ adjust to the number you need or use ArrayResize()
Do you know how to get the value of array element?
thank your help, the value of RSV is correct.there is another question,please see the code.
the percentK[i] value is -0,why?