Download MetaTrader 5
To add comments, please log in or register
Read the Forum and improve your rating!
mostafalotfi
185
mostafalotfi 2014.03.30 08:13 

Hi

after my expert draw HLINES i cannot select and change their properties from chart , but when i press Ctrl+B and then list all , i can change the properties of them... can you please advise why its like this? 

Alain Verleyen
Moderator
28651
Alain Verleyen 2014.03.30 12:15  
mostafalotfi:

Hi

after my expert draw HLINES i cannot select and change their properties from chart , but when i press Ctrl+B and then list all , i can change the properties of them... can you please advise why its like this? 

This way the user of an EA can not easily modify/delete what is managed by an EA.

If you want, you can change this behaviour by changing the following properties when you draw an object by code :

      ObjectSetInteger(0,objname,OBJPROP_HIDDEN,false);
      ObjectSetInteger(0,objname,OBJPROP_SELECTABLE,true);
mostafalotfi
185
mostafalotfi 2014.03.30 19:56  
angevoyageur:

This way the user of an EA can not easily modify/delete what is managed by an EA.

If you want, you can change this behaviour by changing the following properties when you draw an object by code :

Thanks
/
To add comments, please log in or register