The function returns the name of a global variable by its index in the list of global variables. To get the detailed error information, one has to call the GetLastError().
It must exceed orbe equal to0andbe less than<ahref="20170707095523/http://www.metasys-seeker.net/MQL4_Reference_ver1/14-08_GlobalVariablesTotal.html">GlobalVariablesTotal()</a>.