MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Common functions  Alert

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
void Alert( ...)
Displays a dialog box containing the user-defined data. Parameters can be of any type. Amount of passed parameters cannot exceed 64.

Arrays cannot be passed to the Alert function. Arrays should be output elementwise.

Data of double type output with 4 decimal digits after point. To output with more precision use DoubleToStr() function.
Data of bool, datetime and color types will be output as its numeric presentation.
To output values of datetime type as string convert it by TimeToStr() function.
See also Comment() and Print() functions.
Parameters:
...   -   Any values, separated by commas. It can be up to 64 parameters.
Sample:
  if(Close[0]>SignalLevel)
    Alert("Close price coming ", Close[0],"!!!");