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

Automated Trading Language Documentation

How to Add New UI Languages to the MetaTrader 5 Platform How to Add New UI Languages to the MetaTrader 5 Platform Subscribe to signal
Multy trade
16.75%, 6 121.10 USD
Pinbar Detector Indicator
Pinbar Detector
Author: GODZILLA
Screenshot
EURUSD, H1
Demo
Trajecta Best Pair Trading DetectorTrajecta Best Pair Trading Detector Try product
Trajecta Best Pair Trading Detector
Author: figurelli

SearchGreatOrEqual

Searches for an element greater than or equal to the model in sorted array.

int  SearchGreatOrEqual(
   long  element      // Sample
   ) const

Parameters

element

[in]  The sample element to search in the array.

Return Value

The position of the found element, if successful, -1 - if the item was not found.

Example:

//--- example for CArrayLong::SearchGreatOrEqual(long)
#include <Arrays\ArrayLong.mqh>
//---
void OnStart()
  {
   CArrayLong *array=new CArrayLong;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- add arrays elements
   //--- . . .
   //--- sort array
   array.Sort();
   //--- search element
   if(array.SearchGreatOrEqual(1000000)!=-1) printf("Element found");
   else                                      printf("Element not found");
   //--- delete array
   delete array;
  }


Updated: 2010.02.22