MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Array functions  ArraySize

 
int ArraySize( object array[])
Returns the count of elements contained in the array. For a one-dimensional array, the value to be returned by the ArraySize function is equal to that of ArrayRange(array,0).
Parameters:
array[]   -   Array of any type.
Sample:
int count=ArraySize(array1);
for(int i=0; i<count; i++)
  {
   // some calculations.
  }