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

Automated Trading Language Documentation

Subscribe to signal
Sniperpip
11.42%, 179.48 USD
ExpMomentumPinballExpMomentumPinball Try product
ExpMomentumPinball
Author: sergey1294
Screenshot
EURAUD, H1
Demo
The Price Histogram (Market Profile) and its implementation in MQL5 The Price Histogram (Market Profile) and its implementation... Exp_ColorX2MA-Parabolic Expert Advisor
Exp_ColorX2MA-Parabolic
Author: GODZILLA

Delete

Removes the element from the given position in the array.

bool  Delete(
   int  pos      // Position
   )

Parameters

pos

[in] position removes the element in the array.

Return Value

true if successful, false - if you can not remove the element.

Example:

//--- example for CArrayString::Delete(int)
#include <Arrays\ArrayString.mqh>
//---
void OnStart()
  {
   CArrayString *array=new CArrayString;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- add arrays elements
   //--- . . .
   //--- delete element
   if(!array.Delete(0))
     {
      printf("Delete error");
      delete array;
      return;
     }
   //--- delete array
   delete array;
  }


Updated: 2010.02.09