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

Automated Trading Language Documentation

Trading signals module based on 3LineBreak indicator Library
Trading signals module based on 3LineBreak indicator
Author: GODZILLA
New Opportunities with MetaTrader 5 New Opportunities with MetaTrader 5 Screenshot
EURUSD, H1
Real
Subscribe to signal
A 007
164.00%, 408.74 USD
MA Delta MomentumMA Delta Momentum Try product
MA Delta Momentum
Author: tradelife

CompareList

Compares the list with another list.

bool  CompareList(
   CList*  list      // With whom we compare
   )

Parameters

list

[in] A pointer to an instance of class CList-source elements for comparison.

Return Value

true if the lists are equal, false - if not.

Example:

//--- example for CList::CompareList(const CList*) 
#include <Arrays\List.mqh> 
//--- 
void OnStart() 
  { 
   CList *list=new CList; 
   //--- 
   if(list==NULL
     { 
      printf("Object create error"); 
      return
     } 
   //--- create source list 
   CList *src=new CList; 
   if(src==NULL
     { 
      printf("Object create error"); 
      delete list; 
      return
     } 
   //--- fill source list 
   //--- . . . 
   //--- compare with another list 
   bool result=list.CompareList(src); 
   //--- delete lists 
   delete src; 
   delete list; 
  } 


Updated: 2010.02.09