Tutorial 05 - EMA cross, part 5 - Buttons behavior [beginners]
-
in this tutorial I show you how to apply some behavior to Buttons, like turn off Button after trade is opened and also how to use custom code block to recolor this button, hope you will like it ...
with this Tutorial 05 we also closed this EMA cross EA tutorials, for next tutorials I choose another example
//////////
you need to know, that with this button behavior you can work also in on Chart section which have faster reactions (or on Timer), but that is not working in tester, so that is why I show you how to work with this behavior in on Tick section to have your EA with buttons under fully control in tester
//////////https://fxdreema.com/shared/Lti2EttK
MQL5: https://fxdreema.com/shared/f8D0nyZKc


-
Hello Miro,
how can I migrate this mql4 code for mql5:
ObjectSet(LoadedObjectName(),OBJPROP_STATE,0);
ObjectSet(LoadedObjectName(),OBJPROP_BGCOLOR,clrGray);
ObjectSet(LoadedObjectName(),OBJPROP_COLOR,clrLightSkyBlue);I would like to use these Buttons for mql5.
Thank you for your help!
-
Hi, it is fast the same, only more strict:
https://fxdreema.com/shared/f8D0nyZKc
ObjectSetInteger(0,LoadedObjectName(),OBJPROP_STATE,0);
ObjectSetInteger(0,LoadedObjectName(),OBJPROP_BGCOLOR,clrGray);
ObjectSetInteger(0,LoadedObjectName(),OBJPROP_COLOR,clrLightSkyBlue); -
Hi Miro,
thank you for helping that fast.

All the best for you