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

Automated Trading Language Documentation

Exploring Trading Strategy Classes of the Standard Library - Customizing Strategies Exploring Trading Strategy Classes of the Standard Library -... Screenshot
EURUSDm, M5
Real
Subscribe to signal
ReticoloFX AUD GBP JPY
36.69%, 1 809.90 USD
Pivot Point Indicator
Pivot Point
Author: niuniu
VisualScalpOrderlyVisualScalpOrderly Try product
VisualScalpOrderly
Author: jaman

InsertArray

Inserts an array of elements from another array ukazannogy position.

bool  InsertArray(
   const long&  src[],     // Source array
   int           pos        // Position
   )

Parameters

src[]

[in]  Reference to an array of source elements to insert

pos

[in]  Position in the array to insert

Return Value

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

Example:

//--- example for CArrayLong::InsertArray(const long &[],int)
#include <Arrays\ArrayLong.mqh>
//---
long src[];
//---
void OnStart()
  {
   CArrayLong *array=new CArrayLong;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- insert another array
   if(!array.InsertArray(src,0))
     {
      printf("Array inserting error");
      delete array;
      return;
     }
   //--- use array
   //--- . . .
   //--- delete array
   delete array;
  }


Updated: 2010.02.09