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

Automated Trading Language Documentation

Testing Performance of Moving Averages Calculation in MQL5 Testing Performance of Moving Averages Calculation in MQL5 Volume Weighted MAVolume Weighted MA Try product
Volume Weighted MA
Author: esoftrade
Position in channel Indicator
Position in channel
Author: victorg
Screenshot
EURAUD, D1
Demo
Subscribe to signal
Bolodewofx by Dewaharis scalper
2 054.09%, 43 116.85 USD

AddArray

Adds to the end of the array elements from another array.

bool  AddArray(
   const CArrayString*  src      // Pointer to the source
   )

Parameters

src

[in] Pointer to an instance of class CArrayString - the source of elements to add.

Return Value

true if successful, false - if you can not add items.

Example:

//--- example for CArrayString::AddArray(const CArrayString*)
#include <Arrays\ArrayString.mqh>
//---
void OnStart()
  {
   CArrayString *array=new CArrayString;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- create source array
   CArrayString *src=new CArrayString;
   if(src==NULL)
     {
      printf("Object create error");
      delete array;
      return;
     }
   //--- add source arrays elements
   //--- . . .
   //--- add another array
   if(!array.AddArray(src))
     {
      printf("Array addition error");
      delete src;
      delete array;
      return;
     }
   //--- delete source array
   delete src;
   //--- use array
   //--- . . .
   //--- delete array
   delete array;
  }


Updated: 2010.02.09