Download MetaTrader 5

Select object on graph...

To add comments, please log in or register
Pavel Soukup
560
Pavel Soukup  

Hi,

when I created programatically whatever object on graph - it is no select. But - I would like now my objects was selected...

I don´t loss time select object. It is possible? Any idea? Thank you. 

Tjipke de Vries
6325
Tjipke de Vries  
endy5:

Hi,

when I created programatically whatever object on graph - it is no select. But - I would like now my objects was selected...

I don´t loss time select object. It is possible? Any idea? Thank you. 

use the pc mouse and doubleclick on object and it will be selected
Pavel Soukup
560
Pavel Soukup  

:-) joke...

I want new object was selected automatically.... ??? 

Tjipke de Vries
6325
Tjipke de Vries  
endy5:

:-) joke...

I want new object was selected automatically.... ??? 

https://www.mql5.com/en/forum/141399

According to WHRoeder in posting there no MT4 solution for this

Tjipke de Vries
6325
Tjipke de Vries  

I don't know what you exactly want Pavel but you can make it clicking on object move it up  or down you make a condition true or false

Is it something like this you want to do ??

Pavel Soukup
560
Pavel Soukup  

I have sometimes more object to each other (lines, label, ...  etc.). I take long time select required object...

I get infuriate me ... :-) 

I thought solution as... ObjectSet(NameObj,  param..) - object will be selected on graph

Tjipke de Vries
6325
Tjipke de Vries  
endy5:

I have sometimes more object to each other (lines, label, ...  etc.). I take long time select required object...

I get infuriate me ... :-) 

I thought solution as... ObjectSet(NameObj,  param..) - object will be selected on graph

if your EA or indicator is making objects on your chart you can make it name object starts with same charaters  like   "CTS-LINE+......"

to delete them all with deinit( )

     int i, ot=ObjectsTotal()-1;
      string id;
    //----
      for(i=ot;i>=0;i--)
        {
         id=ObjectName(i);
         if(StringSubstr(id,0,9)=="CTS-LINE+")   //9 for count same starting characters
            {ObjectDelete(id);}
        }

and you remove them all at deinit( )

Ex Ovo Omnia
3185
Ex Ovo Omnia  
When I am getting mad with selecting a resisting object in a chart, I open the objects list (ctrl+B), then I click on the "Name" header to sort them alphabetically a I select one by checking its box.
Simon Gniadkowski
Moderator
18003
Simon Gniadkowski  
Ovo:
When I am getting mad with selecting a resisting object in a chart, I open the objects list (ctrl+B), then I click on the "Name" header to sort them alphabetically a I select one by checking its box.
I think endy5 wants to do the Object selection programmatically . . . but there is no option to do that as far as I know.
Pavel Soukup
560
Pavel Soukup  

Thank you all,

Ovo: ok, but this way very slowly for me in real time market

Raptor: yes, yes, yes ..... ok,  what can I do... :-(

Tjipke de Vries
6325
Tjipke de Vries  
endy5:

Thank you all,

Ovo: ok, but this way very slowly for me in real time market

Raptor: yes, yes, yes ..... ok,  what can I do... :-(


The option I started with Doubleclick with mouse on Object ....

or become the first one programming this option   :-) joke...

12
To add comments, please log in or register