Skip to content

Global Variables of the Terminal

Global Variables of the Client Terminal

There is a group set of functions for working with global variables.

Global variables of the client terminal are accessible simultaneously from all mql5 programs launched in the client terminal.

FunctionAction
GlobalVariableCheckChecks the existence of a global variable with the specified name
GlobalVariableTimeReturns time of the last accessing the global variable
GlobalVariableDelDeletes a global variable
GlobalVariableGetReturns the value of a global variable
GlobalVariableNameReturns the name of a global variable by its ordinal number in the list of global variables
GlobalVariableSetSets the new value to a global variable
GlobalVariablesFlushForcibly saves contents of all global variables to a disk
GlobalVariableTempSets the new value to a global variable, that exists only in the current session of the terminal
GlobalVariableSetOnConditionSets the new value of the existing global variable by condition
GlobalVariablesDeleteAllDeletes global variables with the specified prefix in their names
GlobalVariablesTotalReturns the total number of global variables
Last updated on