fxDreema

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

    Can condition block parameters be put in variables

    Questions & Answers
    2
    23
    1429
    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.
    • OD
      OD last edited by

      ba099b99-5975-4a90-a589-9ac51b72c564-image.png

      1 Reply Last reply Reply Quote 1
      • jstap
        jstap last edited by

        Yes modify variables

        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! 😊

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

          @jstap Can you illustrate as you say how from the example above you can modify the parameter to accommodate more than two values using one variable.

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

            That a condition, create the variable you want, then save it using modify, with the same settings you have in the picture

            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! 😊

            OD 2 Replies Last reply Reply Quote 0
            • OD
              OD @jstap last edited by

              @jstap I want only the parameter value to change but these other values should remain. Using the modify variables block we have to change everything

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

                @jstap ec9b2cb0-31aa-49f0-97c0-ae4a1eaff323-image.png For example how can we modify the METHOD variable to switch between the given options without affecting other parameters

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

                  You can change the variable in a separate tree, so only one aspect is changed

                  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! 😊

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

                    @jstap How do you even put such an aspect to a variable

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

                      Do you want something to change this or for you to be able to change in the inputs?
                      TYPE = ENUM_MA_METHOD
                      VALUE = MODE_SMA
                      name it what you want

                      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! 😊

                      OD 2 Replies Last reply Reply Quote 0
                      • OD
                        OD @jstap last edited by

                        @jstap I want a shared example of how these parameters can be put as variables and how they can be modified

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

                          Add that to a project, I will check and say if it's right. To modify set with a modify block, and above have blocks that tell modify to modify

                          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! 😊

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

                            @jstap I have something like this
                            90f9892b-5dbe-4884-83ef-712ca9089f22-image.png

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

                              @jstap Where do we get these TYPES AND VALUES from?

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

                                https://docs.mql4.com/constants/indicatorconstants/enum_ma_method
                                You might be better to use the int value to select/change, the words work best for constants, if automatically changing, you need blocks (probably in a separate tree) changing this value as required.

                                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! 😊

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

                                  @jstap So where do we use the int value to change if the type is already selected

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

                                    In the link it shows you the int value for the type, so basically change the value in the variable, and the type in the block should change

                                    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! 😊

                                    OD 2 Replies Last reply Reply Quote 0
                                    • OD
                                      OD @jstap last edited by

                                      @jstap I don't understand that explanation. Kindly show me where am wrong in the image below whereby the variable METHOD original value is MODE_SMA and now I want to modify it to MODE_EMA...

                                      f303ebd9-b441-480e-89cd-a267c6f26a78-image.png

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

                                        Although it is written in text I don't think this will work, use the equivalent int numbers 0,1,2,3,4

                                        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! 😊

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

                                          @jstap Do you mean this values?

                                          f845cd32-52cf-44ab-b067-be355392dc19-image.png

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

                                            Yes.....

                                            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! 😊

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

                                            Online Users

                                            A
                                            A
                                            E
                                            B
                                            M
                                            J
                                            B

                                            26
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors