MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Object functions  ObjectType

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
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);