Download MetaTrader 5

How can I "hide" object so it isn't appear in object list?

To add comments, please log in or register
pipraider
44
pipraider  

Hi.

I need to create some label & some arrow, but when i use ObjectCreate() command, this object will appear in chart window object list.

Is there any way to create an object, but the object itself will not appear in object list? so user will not remove of move it by accident.

Thank you.

Rashid Umarov
Admin
12661
Rashid Umarov  
No, it's impossible.
pipraider
44
pipraider  
Rosh:
No, it's impossible.


Wow.. that's quick reply :)

thank you Rosh!

Ray
2649
Ray  

Use

if(ObjectFind(name) == -1) ObjectCreate(name,...) ; /// recreate the object if it is gone

estufa
7
estufa  

You can do

ObjectSet(nameNewObject,OBJPROP_HIDDEN, true);

honest_knave
Moderator
2324
honest_knave  
Indeed, there have been many changes in the last 9 years 
Keith Watford
Moderator
10619
Keith Watford  
Also, you can still show hidden objects in the object list.
To add comments, please log in or register