fxDreema

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

    how can out every number ?

    Questions & Answers
    3
    12
    1910
    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
      Moon last edited by Moon

      hello
      if price like ( 122.235 ) and i want from this price or number out from it every number alone and save in variable like ( 1 - 2 - 2 - 2 - 3 - 5 ) every number alone from price
      how can i do that ? in fxdreema
      thank you

      roar 1 Reply Last reply Reply Quote 0
      • roar
        roar @Moon last edited by

        @moon with these 2 functions:
        https://docs.mql4.com/convert/doubletostr
        https://docs.mql4.com/strings/stringsubstr

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        M 2 Replies Last reply Reply Quote 0
        • M
          Moon @roar last edited by

          @roar how i can do that in fxdreema ?
          how i can use this function in fxdreema?

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

            @roar i want if price like 125.288
            i want i take first number alone 1
            and second number alone 2
            and third number alone 5
            and four number aone 2
            and five number alone 8
            and six number alone 8
            and save every number alone in variables

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

              you need to use the block custom code and decide how you want to put in the length of the pair and generate enough variables for that ....

              M 1 Reply Last reply Reply Quote 1
              • M
                Moon @bk7 last edited by

                @bk7 can show me example and share link fxdreema project

                bk7 1 Reply Last reply Reply Quote 0
                • bk7
                  bk7 @Moon last edited by

                  @moon

                  as i said before you have to decide on how to determine the amount of numbers first. then i can show you a quick example...

                  M 1 Reply Last reply Reply Quote 1
                  • M
                    Moon @bk7 last edited by Moon

                    @bk7 ok
                    like symbol USDJpy
                    any price have will be on this symbol
                    i want out number from it like above example

                    I want to break the number price

                    if price like ( 125.288 ) any price in any time will be - not stable price

                    i want take first number alone 1 and save it
                    and second number alone 2 and save it
                    and third number alone 5 and save it
                    and four number aone 2 """
                    and five number alone 8 """
                    and six number alone 8 """"
                    and save every number alone in variables

                    this you ask about it ?

                    bk7 1 Reply Last reply Reply Quote 0
                    • bk7
                      bk7 @Moon last edited by

                      @moon
                      no i asked about how to determine the length of the numbers. your example has a lenght of 6 symbols, but that can be different from symbol to symbol.
                      that would be the first step...

                      M 1 Reply Last reply Reply Quote 1
                      • M
                        Moon @bk7 last edited by

                        @bk7 ok will be 6 like price in usdjpy

                        bk7 1 Reply Last reply Reply Quote 0
                        • bk7
                          bk7 @Moon last edited by

                          @moon

                          like this (didn't test it)

                          https://fxdreema.com/shared/HVOxSxBGd

                          M 1 Reply Last reply Reply Quote 1
                          • M
                            Moon @bk7 last edited by

                            @bk7 thank you very
                            its work excellent 🙂

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

                            Online Users

                            E
                            J
                            T
                            J

                            19
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors