MQL4 Reference Global Variables of the Terminal GlobalVariableTime

MQL4 Help as One File:

GlobalVariableTime

Returns the time when the global variable was last accessed.

datetime  GlobalVariableTime(
   string  name      // name
   );

Parameters

name

[in]  Name of the global variable.

Return Value

The function returns time of last accessing the specified global variable. Addressing a variable for its value, for example using the GlobalVariableGet() and GlobalVariableCheck() functions, also modifies the time of last access. In order to obtain error details, call the GetLastError() function.

Note

Global variables exist in the client terminal during 4 weeks since they were called last. After that they are automatically deleted.

See also

GlobalVariableCheck()