fxDreema

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

    String variable adjustment using "Modify Variables" block?

    Questions & Answers
    3
    6
    1845
    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.
    • R
      rafaels919 last edited by rafaels919

      Hi,
      So I have this string variable with value: 1,2,3,4,5

      EA executes one value from the string at a time, if it loses, it moves on to the next value.
      I want to reuse the first value when a loss is triggered, or in other words - to Not proceed to the next value in that sequence.
      Is it possible to do with the "Modify Variables" block? (I know that you can make simple adjustments using the "adjust" window, but there is no instructions on how to move one value back in the string sequence):
      alt text

      1 Reply Last reply Reply Quote 0
      • R
        rafaels919 last edited by

        @fxdreema Would appreciate your input on this.

        1 Reply Last reply Reply Quote 0
        • R
          rafaels919 last edited by

          It also seems like you can't have multiple values in the "Modify Variables" Numeric input:
          alt text

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            I'm not an expert at mql4, but I would say that string variables cannot be numbers, but text. According to your example, you want to modify numbers so you should use a 'double' or 'int' variable instead.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            T 1 Reply Last reply Reply Quote 0
            • T
              trader.philipps @l'andorrà last edited by

              @l-andorrà String datatype is used for characters such as a b c, blanks and other special character and also numbers. However the values as numbers are not numbers to calculate with such as multiplication.
              In order to transform a number in String datatype to a number in a numeric datatype you need to convert it.
              In the given case there is a comma separated lost of numbers stored in a String datatype. In order to get it as numbers, you'd need to create an array of numbers from it and address each value from the array's index.
              If you use the String (list of numbers) as a betting sequence, fxdreema does that work for you.
              If you want to do this manually, you need to implement the de-seralization by yourself.

              I like to share my knowledge, but expect the others to contribute as well.

              l'andorrà 1 Reply Last reply Reply Quote 1
              • l'andorrà
                l'andorrà @trader.philipps last edited by

                @trader-philipps said in String variable adjustment using "Modify Variables" block?:

                @l-andorrà String datatype is used for characters such as a b c, blanks and other special character and also numbers. However the values as numbers are not numbers to calculate with such as multiplication.
                In order to transform a number in String datatype to a number in a numeric datatype you need to convert it.
                In the given case there is a comma separated lost of numbers stored in a String datatype. In order to get it as numbers, you'd need to create an array of numbers from it and address each value from the array's index.
                If you use the String (list of numbers) as a betting sequence, fxdreema does that work for you.
                If you want to do this manually, you need to implement the de-seralization by yourself.

                And this is why a true programmer should be the only one answering in this forum. No me! LOL XD.

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                Online Users

                S
                M
                V
                G
                J
                K
                P
                M
                S
                P
                H
                N

                18
                Online

                146.8k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors