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

Automated Trading Language Documentation

Hakuna MatataHakuna Matata Try product
Hakuna Matata
Author: cbalta
CandleStop Indicator
CandleStop
Author: GODZILLA
Screenshot
USDPLN, H4
Real
Simple Trading Systems Using Semaphore Indicators Simple Trading Systems Using Semaphore Indicators Subscribe to signal
WCS Good Profit
336.71%, 418.52 USD

Shutdown

Clears the array with a full memory release.

bool  Shutdown()

Return Value

true if successful, false - if an error occurred.

Example:

//--- example for CArrayLong::Shutdown()
#include <Arrays\ArrayLong.mqh>
//---
void OnStart()
  {
   CArrayLong *array=new CArrayLong;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- add arrays elements
   //--- . . .
   //--- shutdown array
   if(!array.Shutdown())
     {
      printf("Shutdown error");
      delete array;
      return;
     }
   //--- delete array
   delete array;
  }


Updated: 2010.02.09