MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Object functions  ObjectType

 
int ObjectType( string name)
The function returns the object type value. To get the detailed error information, one has to call the GetLastError() function.
Parameters:
name   -   Object name.
Sample:
if(ObjectType("line_object2")!=OBJ_HLINE) return(0);