Documentation
The long-awaited program of the website beta testing has been launched. For some time the website operation may be inconsistent. The website developers are filling up its contents now doing their best to make it maximum convenient for you. Please accept our apologies for the temporary inconvenience.
MQL5 ReferenceCommon Functions 

Common Functions

General-purpose functions not included into any specialized group are listed here.

Function

Action

Alert

Displays a message in a separate window

CheckPointer

Returns the type of the object pointer

Comment

Outputs a comment in the left top corner of the chart

DebugBreak

Program breakpoint in debugging

ExpertRemove

Stops expert advisor and unloads it from the chart

GetPointer

Returns the object pointer

GetTickCount

Returns the number of milliseconds that have elapsed since the system was started

MessageBox

Creates, displays a message box and manages it

PeriodSeconds

Returns the number of seconds in the period

PlaySound

Plays a sound file

Print

Displays a message in the log

PrintFormat

Formats and prints the sets of symbols and values in a log file in accordance with a preset format

ResetLastError

Sets the value of a predetermined variable _LastError to zero

SendFTP

Sends a file at the address specified in the settings window of the "Publisher" tab

SendMail

Sends an email at the address specified in the settings window of the "Mailbox" tab

Sleep

Suspends execution of the current Expert Advisor or script within a specified interval

TerminalClose

Commands the terminal to complete operation

ZeroMemory

Resets a variable passed to it by reference. The variable can be of any type, except for classes and structures that have constructors.