MQL4 Reference
Common functions
Comment
The function outputs the comment defined by the user in the left top corner of the chart. Parameters can be of any type. Amount of passed parameters cannot exceed 64.
Arrays cannot be passed to the Comment() function. Arrays should be output elementwise.
Data of double type output with 4 digits after the decimal point.
To output with more precision, use the DoubleToStr() function.
Data of bool, datetime and color types will be output as their numeric presentation.
To output values of datetime type as strings, convert them with the TimeToStr() function.
See also Alert() and Print() functions.
Parameters:
| ... |
- |
=Any values separated by commas. It can be up to 64 parameters. |
Sample:
double free=AccountFreeMargin();
Comment("Account free margin is ",DoubleToStr(free,2),"\n","Current time is ",TimeToStr(TimeCurrent()));
|
|
|