fxDreema

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

    Important question

    Questions & Answers
    2
    6
    43
    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.
    • D
      Dr.Amiin last edited by

      Hi everyone,

      In fxDreema, I have a block with the white activation circle (the checkbox trigger). I want this block to activate only if my boolean variable Oner is true.

      I wrote the condition directly inside the small input box next to the white circle, but it didn’t work and the block still activates.

      What is the correct syntax to make the block check Oner == true before activation?

      Thanks!
      77c6b2dd-0ee6-4c5c-99cb-73eb90bbc0bc-image.png
      1fe9f375-4600-4b29-b914-7cdb6eb4bb69-image.png

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

        That box changes the value on block start/end, to check if a bool is true/false check it in a condition block above using it

        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
        • D
          Dr.Amiin @Dr.Amiin last edited by Dr.Amiin

          @jstap Got it, thanks. So that means it’s not possible to make the block check a bool before activation using that box, right?
          And the only way is to put a condition block above it?

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

            You can, sometimes is easier to change externally: https://fxdreema.com/shared/ds1aZi4Hb

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

            D 1 Reply Last reply Reply Quote 1
            • D
              Dr.Amiin @jstap last edited by

              @jstap Thanks for the shared project, but honestly I didn’t fully understand it. I couldn’t really grasp how it solves the problem.

              Could you please explain briefly what part I should look at and how it ensures the block only activates when my bool variable is true?

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

                The variable type is set in FX, sting = text, double = 0.0, int = 0, bool = true/false, date time is similar to int, you can search google for these definitions. The bool constant is checked in the condition, then it sets true of false to the string variable, " " tells the block you are setting text instead of a numeric number. true = 1 false = 0

                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 1
                • 1 / 1
                • First post
                  Last post

                Online Users

                F
                A
                H
                A

                14
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors