fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Tutorial 05 - EMA cross, part 5 - Buttons behavior [beginners]

    Tutorials by Users
    2
    4
    6579
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      miro1360 last edited by miro1360

      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

      0_1480644201764_upload-aea06637-ccbc-4ff5-b30a-c6749731e506

      0_1480644391991_upload-1a9aed2c-c532-4433-a476-8f805cea43ab

      Between trading and gambling is a very small gap, be careful.

      1 Reply Last reply Reply Quote 2
      • D
        drop last edited by

        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!

        1 Reply Last reply Reply Quote 0
        • M
          miro1360 last edited by

          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);

          Between trading and gambling is a very small gap, be careful.

          1 Reply Last reply Reply Quote 0
          • D
            drop last edited by

            Hi Miro,

            thank you for helping that fast.

            🙂

            All the best for you

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            R
            F
            S

            14
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors