Lock drawings

 
Is there a way to lock my drawings on Metatrader? if so how?
 
newnewson24:
Is there a way to lock my drawings on Metatrader? if so how?

You mean do some analysis ,close the chart , and if you reopen it load that analysis ?

 

I.e. while im doing other things on the chart my trendline wont accidentally move 

Lorentzos Roussos:

You mean do some analysis ,close the chart , and if you reopen it load that analysis ?

 
newnewson24:

I.e. while im doing other things on the chart my trendline wont accidentally move 

Double click on an object to deselect it.
 
newnewson24:
Is there a way to lock my drawings on Metatrader? if so how?

You can try ObjectSetInteger() with OBJPROP_SELECTABLE flag set to false.

Documentation on MQL5: Object Functions / ObjectSetInteger
Documentation on MQL5: Object Functions / ObjectSetInteger
  • www.mql5.com
//|                                               Table of Web Colors| //|                         Copyright 2011, MetaQuotes Software Corp | //|                                        https://www.metaquotes.net | //| Array of web colors                                              |...