Download MetaTrader 5
To add comments, please log in or register
Code Base will help you in mastering your theoretical skills. Come and learn!
Pavel Soukup
559
Pavel Soukup 2013.03.01 11:45 

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
6299
Tjipke de Vries 2013.03.01 12:09  
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
559
Pavel Soukup 2013.03.01 12:18  

:-) joke...

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

Tjipke de Vries
6299
Tjipke de Vries 2013.03.01 12:27  
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
6299
Tjipke de Vries 2013.03.01 12:44  

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
559
Pavel Soukup 2013.03.01 13:40  

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
6299
Tjipke de Vries 2013.03.01 13:59  
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( )

Ovo Cz
3050
Ovo Cz 2013.03.01 16:36  
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
17994
Simon Gniadkowski 2013.03.01 17:26  
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
559
Pavel Soukup 2013.03.01 17:45  

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
6299
Tjipke de Vries 2013.03.01 17:55  
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