Thanks for your reply.
ObjectsDeleteAll will work, but I don't want to delete all text objects.
Does a function exists which will combines all text objects of my script. Which will allow me when I double click on a text object the other text objects of the array will also highlight.
Explanation with pictures:
I would like to, when I click on one of the text objects placed by my script, that all textobjects of the array get highlighted/selected.
http://prntscr.com/7yucrp
So I can use the button delete selected items.
http://prntscr.com/7yucfm
Thanks in advance,
Terry
I see, in that case, you will not need that function. In MQL5, it is possible to delete using a certain prefix (e.g. "Wave labels") using the same function (ObjectsDeleteAll). In MQL4, it does not have that argument, so you will need to iterate over the objects on the chart using a loop (with StringFind).
I see, in that case, you will not need that function. In MQL5, it is possible to delete using a certain prefix (e.g. "Wave labels") using the same function (ObjectsDeleteAll). In MQL4, it does not have that argument, so you will need to iterate over the objects on the chart using a loop (with StringFind).
ObjectSetInteger OBJPROP_SELECTABLE Object availability bool
Then double click all objects you want to delete so they are selected and then
ObjectGetInteger OBJPROP_SELECTED Object is selected bool
in a loop to get all selected objects and then delete all of them with one delete button.
or if that's not what you were looking for you can have the code select them and delete them without clicking manually.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Coders,
Could someone help me with the following?
I'm using an Elliot wave script to manually label the waves. The script places 8 different objects on the chart (i,ii,iii,iv,v,a,b,c).
Everything works fine, but deleting the objects is a lot work. Because I have to click on every object(i,ii,iii,iv,v,a,b,c), to delete them. I would like to add something to the code which makes me able to highlight/select all objects (i,ii,iii,iv,v,a,b,c) with just one click on a object of the array. I've already searched but I couldn't find the function I need.
(I'm not looking for a script who deletes all objects on the chart, because I'm labeling more than one wave.)
Thanks in advance