Sorting Multidimentional arrray
Can any one tell if there is function to sort two or more dimentional arrays. Thanks.
- Sorting 2 dimention array
- Function define to return several value in one dimention array
- How do you set a multi-dimentional array to 0?
You can write your own code to sort them, it is not impossible.
double ind[m][3][2]; // 3 dimension for(m=0; m<2; m++) { for(k=0; k<3; k++) { for(i=0; i<2; i++) { for(j=0;j<2;j++) { if(m<1)ind[m][k][i*2+j*2]+=iClose(NULL,frame[k],i+j); else ind[m][k][i*2+j*2]+=iOpen(NULL,frame[k],i+j); if(j*2<=3)ind[m][k][i*2+j*2+1]+=ind[m][k][i*2+j*2]; } } } }example for data ...
sorting example
for(i=0;i<20;i++) { mov=0; file=20; for(j=0;j<20;j++) { if(move[j][1]>mov && move[j][3]>300) { if(move[j][2]<0) { mov=move[j][1]; file=j; } } } move[file][2]=i; }
https://www.mql5.com/en/code/8701
What about this library? Its got alot of sorting functions and all kinds of goodies for multidimensional arrays.
What about this library? Its got alot of sorting functions and all kinds of goodies for multidimensional arrays.