help me,cal array problom

47803124
160
for(i=0;i<=limit;i++)
      {
         double xy=MathPow(bar/2,2); 
         count[i]=0;
         ave[i]=0;
         chazhi[i]=0;
         countpingjuncang[i]=0;
       
  
                
                 for(x=i;x<=i+10;x++)
                    {
                        count[i]=count[i]+Close[x];  
                    }

                  //Alert("count[i]=",count[i]);

 

 I want to sum the front 10 K line's close price ,but i can't get the value ,why

Simon Gniadkowski
17410
zdj231:

<CODE DELETED> 


 I want to sum the front 10 K line's close price ,but i can't get the value ,why

Please read some other posts before posting . . .

Please   edit   your post . . .    please use the   SRC   button to post code: How to use the   SRC   button. 

Simon Gniadkowski
17410
zdj231:

 

 I want to sum the front 10 K line's close price ,but i can't get the value ,why

Show the code where you have declared the array.