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

Automated Trading Language Documentation

Subscribe to signal
Frevo Strategy ASY4
3 142.87%, 324 287.36 USD
Screenshot
EURUSD, H4
Real
Automata-Based Programming as a New Approach to Creating Automated Trading Systems Automata-Based Programming as a New Approach to Creating... Trade AreaTrade Area Try product
Trade Area
Author: song_song
3Parabolic System Indicator
3Parabolic System
Author: GODZILLA

Total

Gets the number of elements in the array.

int  Total() const;

Return Value

Number of elements in the array.

Example:

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


Updated: 2010.02.09