fxDreema

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

    Results in variables processed by formula

    Bug Reports
    0
    42
    2663
    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
      duepips @jstap last edited by

      @jstap said in Results in variables processed by formula:

      @duepips nothing, just misses the normalise place sometimes: buy1=(DoubleToString(buy1,2) + DoubleToString(OrderLots(),2));
      buy2=(OrderOpenPrice()*OrderLots()+buy2);
      buy3=(buy2/buy1);
      0_1673370271378_Schermata 2023-01-10 alle 18.03.43.png
      it does not work0_1673370273143_Schermata 2023-01-10 alle 18.02.20.png

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

        @duepips Add another variable, buy4=(DoubleToString(buy,2,2);

        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 0
        • D
          duepips @jstap last edited by

          @jstap said in Results in variables processed by formula:

          @duepips Add another variable, buy4=(DoubleToString(buy,2,2);

          but the formula is complete! there is some incompatibility problem on the generated code, anyway thanks

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

            @duepips Wright the code this way:
            buy1=(DoubleToString(buy1,2) + DoubleToString(OrderLots(),2));
            buy2=DoubleToString(OrderOpenPrice()*OrderLots()+buy2,2);
            buy3=(buy2/buy1);

            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 0
            • D
              duepips @jstap last edited by

              @jstap said in Results in variables processed by formula:

              @duepips Wright the code this way:
              buy1=(DoubleToString(buy1,2) + DoubleToString(OrderLots(),2));
              buy2=DoubleToString(OrderOpenPrice()*OrderLots()+buy2,2);
              buy3=(buy2/buy1);

              not work, lots not load

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

                @duepips Worked for me.

                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 0
                • D
                  duepips @jstap last edited by

                  @jstap said in Results in variables processed by formula:

                  @duepips Worked for me.

                  look0_1673374877635_Schermata 2023-01-10 alle 19.20.25.png 0_1673374879269_Schermata 2023-01-10 alle 19.20.39.png

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

                    @duepips what's not working, test each line and variable separately, let me know if something isn't working.

                    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 0
                    • D
                      duepips @jstap last edited by

                      @jstap said in Results in variables processed by formula:

                      what's not working, test each line and variable separately, let me know if something isn't working.

                      it doesn't load anything, you see the data on the graph

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

                        @duepips Do you mean the comment on chart? Check each element separately, if it doesn't work say what's not working and add the latest 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! 😊

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

                          @jstap said in Results in variables processed by formula:

                          @duepips Do you mean the comment on chart? Check each element separately, if it doesn't work say what's not working and add the latest shared link.

                          the problem lies in the fxdreema code that when there are many example positions: 10 positions of 0.01 Buy and 9 of 0.01 Sell instead of writing the difference between Buy and Sell of 0.01 sometimes writes 0.0090000000002 or 0.01000000002, the problem lies in the fxdreema code or in meatatrader

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

                            @duepips Use the bucket of trades to get all combined values, then DoubleToString if result needs normalised.

                            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 0
                            • D
                              duepips @jstap last edited by

                              @jstap said in Results in variables processed by formula:

                              @duepips Use the bucket of trades to get all combined values, then DoubleToString if result needs normalised.
                              0_1673377490367_1673309019899-schermata-2023-01-10-alle-00.59.09-resized.png
                              I've already tried the bucket block too, I don't know what else to try

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

                                @duepips Using bucket is much easier, tell me what block is responsible to this value, add the latest link so what's causing this can be assessed.

                                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 0
                                • D
                                  duepips @jstap last edited by duepips

                                  @jstap said in Results in variables processed by formula:

                                  @duepips Using bucket is much easier, tell me what block is responsible to this value, add the latest link so what's causing this can be assessed.

                                  this bucket https://fxdreema.com/shared/vE1cP0egc creates the same error, instead of 0.02 (the difference of the lots between buy and sell) write 0.0199999999999999

                                  0_1673378904434_Schermata 2023-01-10 alle 20.25.13.png

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

                                    @duepips Project wouldn't load.

                                    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 0
                                    • D
                                      duepips @jstap last edited by

                                      @jstap said in Results in variables processed by formula:

                                      @duepips Project wouldn't load.

                                      try now i fixed the link

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

                                        @duepips Am not sure what you are doing, strip this back so you are trying to only get results into 1 variable, once you have the lots into a variable the code is the same as I showed before.

                                        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 0
                                        • D
                                          duepips @jstap last edited by duepips

                                          @jstap said in Results in variables processed by formula:

                                          Am not sure what you are doing, strip this back so you are trying to only get results into 1 variable, once you have the lots into a variable the code is the same as I showed before.

                                          this: https://fxdreema.com/shared/SlN4bBvdb

                                          I'm doing the buy lots minus the sell lots using the formula, the correct calculation is: (0.03 - 0.01 = 0.02) the result of the formula instead gives 0.019999999999999997

                                          0_1673381364849_Schermata 2023-01-10 alle 21.06.15.png

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

                                            @duepips Try and add this:

                                            0_1673387200737_e213445e-4044-41f2-a988-608c69641925-image.png

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

                                            Online Users

                                            E
                                            S
                                            N
                                            O

                                            13
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors