Download MetaTrader 5

Changing expert advisor settings (true/false) by clicking on the chart

To add comments, please log in or register
sunshineh
1247
sunshineh  

Hi,

what possibilities are given to active/deactive ea settings on the chart?

I found, that I can put buttons on the chart, now.

Is it also possible to "create" a clickbox or write ON / OFF on the chart and change the value by clicking on the string?

Are there examples for these functions?

qjol
3243
qjol  
see here, here and here also check \\include\controls\CheckBox.mqh
sunshineh
1247
sunshineh  
Thanks for your links!! Does this mean, that I can use every mt5-graphical object also with my mt4 account?
sunshineh
1247
sunshineh  

Now I am testing the button functions.


I have created my button and want to change the button text.

I am changing the text with:

ObjectSetString(0,"Button_Testname",OBJPROP_TEXT,"Deinit");

If I read the Text I am getting the right value, but the button isn't changing the text on the chart. (Only if I put string ObjectSetString(0,"Button_Testname",OBJPROP_TEXT,"Deinit"); in the deinit function).

I tried also the command ChartRedraw() after my command-string, but it doesn't help :-(

To add comments, please log in or register