Download MetaTrader 5
To add comments, please log in or register
How to test a program before buying?
Mohammad Ali
18104
Mohammad Ali 2014.08.03 07:10 

Dear Guys

How can i write code to add button like that.

 

Keith Watford
Moderator
7907
Keith Watford 2014.08.03 07:57  
Type "OBJ_BUTTON" into the search box in the Editor help and you will see an example with functions already written for you.
Mohammad Ali
18104
Mohammad Ali 2014.08.03 11:29  
GumRai:
Type "OBJ_BUTTON" into the search box in the Editor help and you will see an example with functions already written for you.


Thanks RumRai. I am created button now.  Can you tell me how attack event into my Button.

honest_knave
962
honest_knave 2014.08.03 12:44  
void OnChartEvent(const int id, const long &lparam, const double &dparam,  const string &sparam)
   {
    if(id==CHARTEVENT_OBJECT_CLICK)
       {
        if(sparam=="MyButton")
           { ....
Mohammad Ali
18104
Mohammad Ali 2014.08.03 15:09  
honest_knave:


Thanks.
/
To add comments, please log in or register