Any coder who can help me debug?

 
ObjectSetText(labelName, "text to display", 10, "Arial", text_color); 

The above line of code is giving me the following errors:

'ObjectSetText' - undeclared identifier
',' - unexpected token
'labelName' - some operator expected
',' - unexpected token
',' - unexpected token
',' - unexpected token
')' - unexpected token
Improperly formatted code edited by moderator.
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
  • Usually people who can't code don't receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • To learn MQL programming, you can research the many available Articles on the subject, or examples in the Codebase, as well as reference the online Book and Documentation
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free). However, recommendations or suggestions for Market products are not allowed on the forum, so you will have to do your own research.
  • Finally, you also have the option to hire a programmer in the Freelance section.
 

Please, always use the CODE button (Alt-S) when inserting code.

Code button in editor

 
Maatla Pelekekae:
'ObjectSetText' - undeclared identifier

This indicates that you are trying to use a function from mql4 in mql5.

Example of creating OBJ_LABEL in mql5:

https://www.mql5.com/en/docs/constants/objectconstants/enum_object/obj_label

The documentation also contains examples of working with all other types of graphic objects. Click on the desired object type in the table at the link below to see an example:

https://www.mql5.com/en/docs/constants/objectconstants/enum_object

Reason: