Well, what value do you get when you create it?
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start(){
double array[32][32][32];
int i, j, k, count;
Print("start");
for ( i = 0; i < 32; i++){
for ( j = 0; j < 32; j++){
for ( k = 0; k < 32; k++){
if(array[i][j][k] != 0) Print(array[i][j][k]);
count++;
}
}
}
Print("End - checked "+count+" elements");
return(0);
}
I see it is all "0" to start.
Use similar code to "set"
I just assumed ArrayInitialize() wouldn't work on multi-dimensional arrays, silly me.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
thanks