fxDreema

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

    Intro data in a variable.

    Questions & Answers
    3
    11
    447
    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.
    • govorushka
      govorushka last edited by

      How to store the entry price of a trade that was executed a few moments ago in a variable?

      Xavier

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

        pink for each trade-> open price in a loop, or save the current price at the time of placing a trade.

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

          Can you send me the block layout using an fxdreema link? I would greatly appreciate it.

          Xavier

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

            https://fxdreema.com/shared/OwI2upt4

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

              How to make the variable store the price with all decimals?

              Xavier

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

                When I set the "Value Format" to "4 decimal places" in the modify variable, the variable only stores the number to the left of the decimal point, but on the right side, it only stores four zeros. How can I make it also store the decimal places?

                Xavier

                S 1 Reply Last reply Reply Quote 0
                • S
                  sktsec @govorushka last edited by

                  @govorushka
                  I think you may have set the data type to integer? If it was double, it should not be a problem

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

                    I have tried using both "integer" and "double" types, and the problem persists. It still shows all zeros for the decimal places.

                    Xavier

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

                      I am lost to what you mean, if I run what I put above you get all decimals: https://fxdreema.com/shared/kEozxvuLc

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

                      1 Reply Last reply Reply Quote 0
                      • S
                        sktsec last edited by sktsec

                        The solution from @jstap gets you the right answer.

                        You said you "set the Value Format to 4 decimal places in the modify variable", I did not see how you did that. Maybe that was where you got the problem

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

                          I'm sorry, guys, I made a mistake while renaming the variable. It turns out that I forgot to insert the variable into the modify variable block. Thank you jstap and sktsec for your patience with me.

                          Xavier

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

                          Online Users

                          S
                          L
                          N
                          Q
                          A
                          F
                          S
                          T
                          A
                          P

                          16
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors