You created a text/label object with no text. Why does it surprise you that you see nothing?
Perhaps you should read the manual. Especially the examples. OBJ_TEXT - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Reading these documents and ObjectCreate() and "properties"
https://docs.mql4.com/constants/objectconstants
I am expecting that changing the object type should change on the chart but only a few actually show changes on the chart.
What are you missing?
You are missing reading the documentation for ObjectCreate()!
Return Value
When the function is used on the current chart, the chart is accessed directly (a usual behavior in MQL4), and the return of true means a successful creation of an object; otherwise false is returned. In this case, you should call GetLastError() for further information about the error.
You created a text/label object with no text. Why does it surprise you that you see nothing?
Perhaps you should read the manual. Especially the examples. OBJ_TEXT - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Thanks, I think I get it now.
I need the ObjectSetText "property".
I have this worked out. I can use OBJ_LABEL, and ObjectSetText with wingdings for my arrows in a set location.
That is working well. Thanks all
YOU have this worked out??!!
Don't you mean that I told you how to do it in your other topic?
https://www.mql5.com/en/forum/392535#comment_28704587
I don't even see that it is related to this topic!
- 2022.04.02
- www.mql5.com
YOU have this worked out??!!
Don't you mean that I told you how to do it in your other topic?
https://www.mql5.com/en/forum/392535#comment_28704587
I don't even see that it is related to this topic!
Well, yes sort of.
ObjectSetInteger,wingdings and the examples shown in that forum post gave errors or produced double and triple wingdings as others indicated too.
The conclusion of that forum indicated CharToStr() was also needed and I worked from there.
In the end my solution was this.
ObjectSet(name,OBJPROP_XDISTANCE,0); ObjectSet(name,OBJPROP_YDISTANCE,300); ObjectSetText(name,CharToStr(54),25,"Wingdings",clrYellow);
So yes you showed me how, and for some reason that post was no longer in my profile so I could not respond there.
Thanks
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
https://docs.mql4.com/constants/objectconstants
I am expecting that changing the object type should change on the chart but only a few actually show changes on the chart.