fxDreema

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

    VARIABLE AS A DECISION (YES OR NO)

    Questions & Answers
    0
    18
    498
    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
      MARIOJR last edited by

      0_1676376007128_36fb3cd2-2736-46a7-b0b4-4d7e6f6aeda8-image.png

      variables and constant as a decision making for yes or no...i cant make it work...how will i do this...

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

        @mariojr Type is bool, value is true/false.

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

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

          i have tried it already and it doesnt work.

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

            @mariojr It does, add a shared link

            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
            • M
              MARIOJR last edited by

              0_1676383162794_8e337c59-9c0f-4c14-ba84-8030f4ee9534-image.png

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

                shared/xehjdCfoc

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

                  https://fxdreema.com/shared/xehjdCfoc

                  1 Reply Last reply Reply Quote 0
                  • C
                    CPxiom @MARIOJR last edited by CPxiom

                    @mariojr In the image all of your variables are double type variables. Also Yes No is string type, that's not boolean. You are checking as a boolean but the variable is a double, with string input :). You can also just compare as numbers: If trade... some variable < double variable or constant so you can define as you wish as an input (the nr of trades)... close trades.
                    Edit: So just to be clear: you want: if the nr of trades is bigger than a nr. (constant) then close trades? Then maybe instead of that some variable you can use the bucket of trades block, but I'm not familiar with that.

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

                      @jstap please check my reply and please can you give me a sample and post the screenshot for my guidance...

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

                        @mariojr No mate, I don't create EA's for people, I have told you how to use, type is a bool not a double, if you want to use double, use numbers like 1 & 2..

                        bool==true/false
                        double==number with a decimal
                        int==whole number
                        color==colour

                        there are more but you get the point

                        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
                        • M
                          MARIOJR last edited by

                          ok thanks a lot...

                          1 Reply Last reply Reply Quote 0
                          • M
                            MARIOJR @MARIOJR last edited by

                            @l-andorrà can you help me with this...

                            1 Reply Last reply Reply Quote 0
                            • M
                              MARIOJR @CPxiom last edited by

                              @cpxiom thanks a lot...

                              can you make a sample screenshot for this...

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                CPxiom @MARIOJR last edited by

                                @mariojr I don't really understand what you want to achieve. If it's about bucket of trades, I'm not familiar with that. I did notice that you misused the variables, so I wrote.

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

                                  no its not about bucket of trades.
                                  how to use variables with a yes or no answer from constant.

                                  C 1 Reply Last reply Reply Quote 0
                                  • C
                                    CPxiom @MARIOJR last edited by

                                    @mariojr YES and NO are string variables/constants. Where it writes double(under Type), change that to string. Constants are used so you can input parameters when you load the EA, and variables can be calculated, reach to their value... after a set of conditions. Then for example, 0_1676591979385_Screenshot 2023-02-17 at 01.59.11.png

                                    For the boolean (this is an alternative), you make a variable of type bool, then condition block with your conditions > modify variables block, where you set your bool to true or false, 0_1676592776634_Screenshot 2023-02-17 at 02.09.59.png
                                    then... in another tree... whith a condition block you check if your conditions are met.... meaning true or false.
                                    0_1676592780621_Screenshot 2023-02-17 at 02.12.12.png

                                    M 1 Reply Last reply Reply Quote 1
                                    • M
                                      MARIOJR @CPxiom last edited by

                                      @cpxiom now i see where my confusion is coming from...i should put on the type for boolean is bool and for text is string...i was mislead by the wording in this picture..
                                      0_1676630473670_0b663c70-e162-4d7c-88ed-5dfa6f75a971-image.png

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

                                        thanks to you...

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

                                        Online Users

                                        M
                                        M
                                        E
                                        M
                                        A
                                        H
                                        E
                                        E
                                        M
                                        S

                                        14
                                        Online

                                        146.7k
                                        Users

                                        22.4k
                                        Topics

                                        122.6k
                                        Posts

                                        Powered by NodeBB Forums | Contributors