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 last edited by duepips

      https://fxdreema.com/shared/37z5o8vSd

      Hi, I noticed that the results processed by the formula block when they are then transcribed inside the variable bring excess decimals, distorting and dirtying the result, is there an explanation/solution to this? 0.04 - 0.03 = 0.01 (0.01000....2 ???) Thank you

      0_1673309019493_Schermata 2023-01-10 alle 00.59.09.png

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

        @duepips add this as text code input: DoubleToString(variable,2); there are other ways to use this code but this generally what you 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! 😊

        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 this as text code input: DoubleToString(variable,2); there are other ways to use this code but this generally what you need.

          I know this method, but I need the correction of the data inside the variable, not outside on the draw text

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

            @duepips Then add the code to the creation, never done it but added to adjust box will likly do it, add a shared link to see what calculations are doing.

            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:

              Then add the code to the creation, never done it but added to adjust box will likly do it, add a shared link to see what calculations are doing.

              if i add DoubleToString inside the formula it doesn't process, i added the shared code

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

                @duepips Yes but it depends on what the formula is doing, for example DoubleToString(AccountBalance(),2)+DoubleToString(AccountProfit(),2): would give you account equity normalised to 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:

                  Yes but it depends on what the formula is doing, for example DoubleToString(AccountBalance(),2)+DoubleToString(AccountProfit(),2): would give you account equity normalised to 2.

                  subtracts the volume of Sell positions from the volume of Buy positions (Buy 0.04 - Sell 0.03 = 0.01) but writes 0.0100000000002

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

                    @duepips Then you can add.

                    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:

                      Then you can add.

                      yes, the DoubleToString works outside the variable, but the data inside the variable that is generated by the formula remains the same

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

                        @duepips Show me he formula, better still just share the project.

                        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 Show me he formula, better still just share the project.

                          https://fxdreema.com/shared/37z5o8vSd

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

                            @duepips use bucket of trades to get average values, add variables as textcodeinput
                            0_1673360599217_bbfd3f4f-7fc9-44b5-81b4-f5bbe675f28b-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
                            • D
                              duepips @jstap last edited by

                              @jstap said in Results in variables processed by formula:

                              @duepips use bucket of trades to get average values, add variables as textcodeinput
                              0_1673360599217_bbfd3f4f-7fc9-44b5-81b4-f5bbe675f28b-image.png

                              this corrects the result that the draw text block writes, but not the data inside the variable, I need to correct the data before saving it inside the variable to use it in the background

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

                                @duepips try adding to adjust:

                                0_1673362077934_bd4e9492-eee3-4288-abf4-664d1a5f54a8-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
                                • D
                                  duepips @jstap last edited by duepips

                                  @jstap said in Results in variables processed by formula:

                                  @duepips try adding to adjust:

                                  0_1673362077934_bd4e9492-eee3-4288-abf4-664d1a5f54a8-image.png

                                  I had also tried this fix, but by mistake, look

                                  0_1673362869219_Schermata 2023-01-10 alle 15.58.28.png

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

                                    @duepips Try removing the formula blocks and add this buy1=(DoubleToString(buy,2) + DoubleToString(OrderLots(),2));
                                    buy2=(DoubleToString(OrderOpenPrice(),2)*DoubleToString(OrderLots(),2)+buy2);
                                    buy3=(buy2/buy1);:

                                    0_1673365723979_e91c7f70-b9c8-4d79-b545-896c5890169c-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
                                    • D
                                      duepips @jstap last edited by

                                      @jstap said in Results in variables processed by formula:

                                      @duepips Try removing the formula blocks and add this buy1=(DoubleToString(buy,2) + DoubleToString(OrderLots(),2));
                                      buy2=(DoubleToString(OrderOpenPrice(),2)*DoubleToString(OrderLots(),2)+buy2);
                                      buy3=(buy2/buy1);:

                                      0_1673365723979_e91c7f70-b9c8-4d79-b545-896c5890169c-image.png

                                      illegal?? Lol0_1673367977441_Schermata 2023-01-10 alle 17.25.17.png

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

                                        @duepips This is what the formula block is doing, just condenses it into 1 block. The error is just a missing/misplaced symbol, turn out it didn't like the DoubleToString: buy1=(DoubleToString(buy1,2) + DoubleToString(OrderLots(),2));
                                        buy2=(OrderOpenPrice()*OrderLots()+buy2);
                                        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 This is what the formula block is doing, just condenses it into 1 block. The error is just a missing/misplaced symbol.

                                          what's missing/misplaced?

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

                                            @duepips nothing, just misses the normalise place sometimes: buy1=(DoubleToString(buy1,2) + DoubleToString(OrderLots(),2));
                                            buy2=(OrderOpenPrice()*OrderLots()+buy2);
                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post

                                            Online Users

                                            E
                                            S
                                            N
                                            O
                                            M

                                            14
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors