fxDreema

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

    Boolean or what?

    Questions & Answers
    2
    4
    1256
    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.
    • C
      coverman last edited by

      If I want to be able to pick 1,2,3 from a list in the EA, how should that be done?
      The boolean is only used for true or false, right?

      But if I want to set a block that is doing this if the user picked 1 and doing that if they picked 2 and a third block if they picked number 3.

      I have tried to figure out how to do this, but not sure...
      Anyone?

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Yes, boolean is true/false, which is like 1/0

        Use "int" data type for whole numbers

        1 Reply Last reply Reply Quote 0
        • C
          coverman last edited by

          But then I won't get a dropdown menu in MT4 when making the choice.
          Or how is that one with int? To set the ones the user can pick from (1,2 or 3).

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            Dropdowns are not supported in fxDreema. Yes, in MQL you can define custom... dropdowns. Enumerations, this is how actually they call them. But this is currently not available from fxDreema. But you can use all predefined enumeration, for example ENUM_MA_METHOD. To do that write ENUM_MA_METHOD for data type (instead of int)

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

            Online Users

            M
            G
            K

            15
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors