Documentation
The long-awaited program of the website beta testing has been launched. For some time the website operation may be inconsistent. The website developers are filling up its contents now doing their best to make it maximum convenient for you. Please accept our apologies for the temporary inconvenience.
MQL5 ReferenceArray Functions 

Group of Functions for Working with Arrays

Arrays are allowed to be maximum four-dimensional. Each dimension is indexed from 0 to dimension_size-1. In a particular case of a one-dimensional array of 50 elements, calling of the first element will appear as array[0], of the last one - as array[49].

Function

Action

ArrayBsearch

Returns index of the firs found element in the first array dimension

ArrayCopy

Copies one array into another

ArrayFree

Frees up buffer of any dynamic array and sets the size of the zero dimension in 0.

ArrayGetAsSeries

Checks direction of array indexing

ArrayInitialize

Sets all elements of a numeric array into a single value

ArrayIsSeries

Checks whether an array is a timeseries

ArrayIsDynamic

Checks whether an array is dynamic

ArrayMaximum

Search for an element with the maximal value

ArrayMinimum

Search for an element with the minimal value

ArrayRange

Returns the number of elements in the specified dimension of the array

ArrayResize

Sets the new size in the first dimension of the array

ArraySetAsSeries

Sets the direction of array indexing

ArraySize

Returns the number of elements in the array

ArraySort

Sorting of numeric arrays by the first dimension