Download MetaTrader 5
To add comments, please log in or register
Learning MQL5? Start with documentation!
mar
1143
mar 2015.03.16 12:27 

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 2015.03.16 16:49  

Hi mar.....

 ObjectSetInteger(chartID,object_name,OBJPROP_SELECTABLE,false); 
mar
1143
mar 2015.03.16 19:27  

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