Are you using MT5?
Then you should change it as follows.
ObjectSetText --> ObjectSetString
ObjectSet --> ObjectSetInteger
Nagisa Unada:
Are you using MT5?
Then you should change it as follows.
ObjectSetText --> ObjectSetString
ObjectSet --> ObjectSetInteger
Hi Nagisa,
No,, I am using MT4
Kristina Suh:
Hi Nagisa,
No,, I am using MT4
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
Check sample code from the documentation on OBJ_LABEL, or at least add error checking for the ObjectCreate() function call.

OBJ_LABEL - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
- docs.mql4.com
The following script creates and moves Edit object on the chart. Special functions have been developed to create and change graphical object's properties. You can use these functions "as is" in your own applications. //| Create a text label | chart_ID=0, ...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I am trying to create a background box.
I seem to have a problem with adjusting the size, It starts at the right position, but I can't seem to get the length longer nomatter what I enter in the size number it doesn't change.
No matter what I change the x_sizeb & y_sizeb to, nothing happens.
Any help would be gratefully appreciated.