fxDreema

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

    Making The EA look nice? Settings block IDs

    Questions & Answers
    3
    10
    529
    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.
    • N
      nicholas86 last edited by

      How do I make this:
      0_1656437266715_Screenshot 2022-06-28 12.25.32.png

      ..look like this:
      0_1656437297615_Screenshot 2022-06-28 12.25.52.png

      ?

      I don't even know the proper keywords to search for this in the Q and A, haha!

      1 Reply Last reply Reply Quote 0
      • B
        biztet last edited by

        Look for Constant.

        1 Reply Last reply Reply Quote 0
        • N
          nicholas86 last edited by nicholas86

          Ok, I see that.
          0_1656438914600_Screenshot 2022-06-28 12.53.45.png

          Do the P#s go under "Name" or "Value"?
          what equals what? Is P# the name or the value?
          Also how do I add a row that's just a description as seen in the example in my first post?

          Ok, searching the forums, thanks.

          jstap 1 Reply Last reply Reply Quote 0
          • jstap
            jstap @nicholas86 last edited by

            @nicholas86 The name is how you want input to look and help you know what's doing what, the value is whatever is needed to create the desired result type is:
            bool== true/false
            int == whole number like 1, 2, 3, 67, 581 etc
            double == number with a decimal like 0.0, 8.7 etc
            string == text

            there are more but unlikely to need.

            Learn fxDreema Without the Wait!

            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

            Don’t miss out

            Click here➡️ https://mybook.to/fxDreema to get your copy today!

            Enjoy! 😊

            N 1 Reply Last reply Reply Quote 1
            • N
              nicholas86 @jstap last edited by nicholas86

              @jstap So I guess I would put
              string == Typical price (HCL/3)
              if I want to have a constant be able to change the applied price of an indicator block from the drop down menu? Or is there a specific code I need to enter.

              Thank you!

              edit: that string didn't work. It shows up in the tester parameters but it doesn't drop down a menu. just shows the text.

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @nicholas86 last edited by

                @nicholas86 I have never done this but you need to use this type: ENUM_APPLIED_PRICE
                this in value: PRICE_TYPICAL
                or possibly the value that's in the link.

                https://docs.mql4.com/constants/indicatorconstants/prices

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

                N 1 Reply Last reply Reply Quote 1
                • N
                  nicholas86 @jstap last edited by nicholas86

                  @jstap Yeah, the option is probably not even gonna make a difference in this particular indicator, a moving average. The period is probably more important.

                  I am grateful for your help. The ENUM thing works!

                  jstap 1 Reply Last reply Reply Quote 0
                  • jstap
                    jstap @nicholas86 last edited by

                    @nicholas86 Your welcome, for moving average int and number is all that's needed.

                    Learn fxDreema Without the Wait!

                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                    Don’t miss out

                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                    Enjoy! 😊

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      nicholas86 @jstap last edited by nicholas86

                      @jstap How do I add the fancy Title bars with this:
                      ==== Text goes here ====
                      ?
                      I tried entering
                      string = [blank] = description: the text I wanted
                      But it didn't work.

                      EDIT: Never mind, I made a mistake. I forgot to update the Constants before closing the Constants window. Oops!

                      1 Reply Last reply Reply Quote 0
                      • B
                        biztet last edited by

                        String | name | description

                        Under Name just put anything.

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

                        Online Users

                        E
                        J
                        T
                        J

                        16
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors