Can I forbid selecting objects?

 

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! 

 

Hi mar.....

 ObjectSetInteger(chartID,object_name,OBJPROP_SELECTABLE,false); 
 

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

Thank you very much! Works perfect. 

Reason: