Download MetaTrader 5

Can I forbid selecting objects?

To add comments, please log in or register
mar
1146
mar  

I  use an indicator plotting round levels on my charts. But when I plot a normal horizontal line and I want to move or delete it it often happens that I select the round number line instead of the horizontal line I wanted to select. So I would like to avoid that any round number line can be selected. Therefore I want to know if it is possible to "forbid" selecting a line.

Thanks! 

Boyan_K
24
Boyan_K  

Hi mar.....

 ObjectSetInteger(chartID,object_name,OBJPROP_SELECTABLE,false); 
mar
1146
mar  

Huh, I didn't even know that this object property exists... :D

Thank you very much! Works perfect. 

To add comments, please log in or register