Download MetaTrader 5

how do I add a checkbox on the chartwindow

To add comments, please log in or register
kuolung1967
45
kuolung1967  
As I know I can use objectcreate to add a button but objecttype no checkbox type.   How to add a checkbox 
Keith Watford
Moderator
10619
Keith Watford  

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  

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
10619
Keith Watford  
   if(id==CHARTEVENT_OBJECT_CLICK)
     {

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

.

To add comments, please log in or register