MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Practical Application Of Databases For Markets Analysis Practical Application Of Databases For Markets Analysis Subscribe to signal
Esquinzo FdF EU
41.27%, 17 627.50 USD
Screenshot
EURUSD, M15
Real
Trade Sessions Indicator Indicator
Trade Sessions Indicator
Author: vdv2001
ImpAlligatorImpAlligator Try product
ImpAlligator
Author: paladin800

Available

Gets the number of free elements of the array are available without additional memory allocation.

int  Available() const

Return Value

Number of free elements of the array are available without additional memory allocation.

Example:

//--- example for CArray::Available()
#include <Arrays\Array.mqh>
//---
void OnStart()
  {
   CArray *array=new CArray;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- check available
   int available=array.Available();
   //--- use array
   //--- ...
   //--- delete array
   delete array;
  }


Updated: 2010.02.22