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

Automated Trading Language Documentation

starter Expert Advisor
starter
Author: Integer
A Platinum Trend StoryA Platinum Trend Story Try product
A Platinum Trend Story
Author: achidayat
Adaptive Trading Systems and Their Use in the MetaTrader 5 Client Terminal Adaptive Trading Systems and Their Use in the MetaTrader 5... Screenshot
EURUSD, H1
Demo
Subscribe to signal
Automatic system hedging 5 217 11
19.07%, 208 650.52 USD

SortMode

Gets the version of the sorting array.

int  SortMode() const;

Return Value

Sorting mode.

Example:

//--- example for CArray::SortMode()
#include <Arrays\Array.mqh>
//---
void OnStart()
  {
   CArray *array=new CArray;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- check sort mode
   int sort_mode=array.SortMode();
   //--- use array
   //--- ...
   //--- delete array
   delete array;
  }


Updated: 2010.02.09