Download MetaTrader 5
To add comments, please log in or register
Do you need private account monitoring? The Signals will provide you one!
kuolung1967
15
kuolung1967 2015.10.20 00:16 
As I know I can use objectcreate to add a button but objecttype no checkbox type.   How to add a checkbox 
Keith Watford
Moderator
7899
Keith Watford 2015.10.20 00:43  

wingdings 253 and 254

      ObjectSetText(Name,CharToStr(253),14,"Wingdings",clrBlack);
      ObjectSetText(Name,CharToStr(254),14,"Wingdings",clrBlack);

 Create a label, then set text as above.

Set chart event to alternate when clicked. You may need to back it with a rectangle label as clicks on label objects are not always recognised if painted on top of another object. 

Palves16666
3
Palves16666 2016.08.24 17:06  

Hello Moderator 3316 / GumRai

 

How are you?

 

I am novice in mql4, How Do I do this alternance in Chart Event clicked?

 

Please, I am trying for days, however I am not able to develope this code.

 

thanks 

Keith Watford
Moderator
7899
Keith Watford 2016.08.24 17:36  
   if(id==CHARTEVENT_OBJECT_CLICK)
     {

      if(sparam=="Your_object_name")
        {
         //Do something;
        }
     }

.

/
To add comments, please log in or register