How to pass variables to array?

 
Greetings, Does any one know how to pass variables to an array e.g. I am doing something like 1 for(i=Bars-j-1; i>=0; i=i-6){ 2 double highs[6] = {High[i], High[i+1], High[i+2], High[i+3], High[i+4], High[i+5]}; 3 int index = ArrayMaximum(highs); ..... } and getting a compilation error: 'High' - variable expected pointing to the second line. Your help would be much appreciated
 
Just figured out myself: double highs[6]; highs[0] = High[i]; highs[1] = High[i+1]; highs[2] = High[i+2]; highs[3] = High[i+3]; highs[4] = High[i+5]; highs[5] = High[i+6];
Reason: