MQL4 Reference 
 Object Functions 
  ObjectType
  | 
ObjectTypeThe function returns the object type value. 
 Parameters object_name [in] Object name. Returned value The function returns the object type value. To get the detailed error information, one has to call the GetLastError() function. Example: 
 See also  |