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

Automated Trading Language Documentation

Screenshot
AUDUSD, M15
Demo
Gann_Multi_Trend Indicator
Gann_Multi_Trend
Author: GODZILLA
Interview with Mariusz Zarnowski (ATC 2012) Interview with Mariusz Zarnowski (ATC 2012) Trajecta Multiple Timeframe Trend Time DetectorTrajecta Multiple Timeframe Trend Time Detector Try product
Trajecta Multiple Timeframe Trend Time Detector
Author: figurelli
Subscribe to signal
Abigail 52
87.90%, 716.50 USD

CompareArray

Compares array with another array.

bool  CompareArray(
   const string&  src[]      // Source array
   ) const

Parameters

src[]

[in] Reference to an array of source elements for comparison.

Return Value

true if arrays are equal, false - if not.

Example:

//--- example for CArrayString::CompareArray(const string &[])
#include <Arrays\ArrayString.mqh>
//---
string src[];
//---
void OnStart()
  {
   CArrayString *array=new CArrayString;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- compare with another array
   int result=array.CompareArray(src);
   //--- delete array
   delete array;
  }


Updated: 2010.02.22
At