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

Automated Trading Language Documentation

ytg_ADX_V1 Expert Advisor
ytg_ADX_V1
Author: satop
Subscribe to signal
A Bird in the Hand EA Live Trading
147.76%, 7 432.72 USD
Creating an Expert Advisor, which Trades on a Number of Instruments Creating an Expert Advisor, which Trades on a Number of... Pony TraderPony Trader Try product
Pony Trader
Author: Sergey.N
Screenshot
EURUSDm, M1
Real

Type

Gets the type identifier of the array.

virtual int  Type() const

Return Value

ID type of the array (for CArrayLong - 84).

Example:

//--- example for CArrayLong::Type()
#include <Arrays\ArrayLong.mqh>
//---
void OnStart()
  {
   CArrayLong *array=new CArrayLong;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- get array type
   int type=array.Type();
   //--- delete array
   delete array;
  }


Updated: 2010.02.22