fxDreema

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

    Insert multiple constants in a box

    Questions & Answers
    4
    16
    1022
    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.
    • A
      artistikidea last edited by

      Hallo,
      I need to know how to insert various text constants into one box.
      Specifically, I need to insert the symbols (eurusd, eurgbp etc.) but these need to be constants and not simply a written text.
      thank you

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

        @artistikidea Constants are what you type in the inputs, what exactly do you mean? If you want to type in inputs create as a string.

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

          So,
          It is necessary that the symbols are controlled by constants in order to be able to adapt to each broker, sometimes in fact some brokers differ in the nomenclature of the symbol.

          Now, in some boxes I have to insert more symbols, depending on the case I can go up to 8-9 (I do not explain the reasons for not dwelling on it).

          The problem is that the boxes are many, the symbols are many, and if I simply entered EURUSD, EURGBP, etc ... and the broker had to have other nomenclatures, a hundred of them would have to be changed manually, it would be exhausting (the bot would not be used only by me) .
          With the textual constants, it is sufficient to change the text (with which the symbol is shown), and it would automatically update all the boxes.

          The problem is that in these boxes, in which I want to insert more symbols in the form of constants, it is not possible to insert more than one constant (as well as - another thing that would be useful - it does not allow you to insert more variables)

          Forgive my English. I'm italian.

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

            @artistikidea I am not sure what you mean exactly, the EA will work on any symbol regardless on how it's spelt, if you are struggling to get EA to work somehow put a shared link here and ask the question, this way blocks can be looked inside to help with problems.

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

              https://fxdreema.com/shared/p90VlMaM

              Open the block. In the box "symbol" there is a constant.
              I want to put more than one (regardless of whether it's a symbol or whatever, or whether it's constants or variables).
              In the end, regardless of the reasons you want to do it, it's conceptually simple. The question is whether it can be done or not. Thanks.

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

                @artistikidea In that box is the symbol name that will be checked for a position (trade), if you want to work on another symbol from a different one you add what is needed here, make the variable/constant a string, if you want to add multiple symbols here leave the box blank, use the set market for next blocks so all blocks beneath are set to chosen market.

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

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

                  I didn't make myself clear.
                  What you say I already know.
                  Please, let me explain.
                  But since there are about ... 20 similar boxes, maybe more, it is necessary (according to the broker, and my bots are used by many people) in some cases to modify something like a hundred parameters.
                  Imagine rewriting 100 times:
                  EURUSD.r
                  GBPUSD.r
                  etc ...
                  I can't know who will be using this robot, I don't know what broker they will use, and I can't ask people to change 93 parameters, or 87 or, in short, crazy numbers. If only I used it, then the problem would not arise.
                  Now, with a constant, just do it 9 times (because this bot works on 9 markets), and automatically all the boxes will be changed.
                  That's all.
                  We try not to hypothesize different needs or what I have or do not have in mind. The question is more easily conceivable like this: regardless, I repeat regardless (in Italian "a prescindere") of any other question and motivation, I would kindly like to know, simply, if it is possible to insert more than one variable / constant into a box. End. The request is simple, what I want to do with this box is beyond the question.

                  1 Reply Last reply Reply Quote 0
                  • B
                    biztet last edited by

                    Hmm... @artistikidea , are you trying to write many symbols in a single constant? If that's the case, i guess you just need to separate each symbol with comma, that's all.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      artistikidea @biztet last edited by

                      @biztet

                      No, I have already created a constant for each symbol, for a total of 9 constants.
                      I need to enter several constants in the box.

                      1 Reply Last reply Reply Quote 0
                      • A
                        artistikidea last edited by

                        So has anyone ever needed, for example, to have to put several variables (or constants) in a single box, separated by a comma?

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

                          @artistikidea That constant will show in inputs, every block that needs the same symbol to work put the constant, when you rename the input constant all blocks will change, if you need more than 1 symbol you have to use the set market for next blocks, by using commas here you will create a conflict, each block activates the symbol that's in it, so to change this needs to do each block then loop to the next symbol.

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

                          A 1 Reply Last reply Reply Quote 0
                          • B
                            biztet @artistikidea last edited by

                            @artistikidea ok now i understand, few constants in a single input box. Sorry i don't know if it's possible in fxdreema.

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

                              @jstap I know all of these things. This is not the focus.
                              The focus is: more constants in a box. Can it be? The rest, really, I don't understand why to discuss it. Can it be done or can't it be done?

                              l'andorrà 1 Reply Last reply Reply Quote 0
                              • A
                                artistikidea @biztet last edited by

                                @biztet Ok, Thank you

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

                                  @artistikidea AFAIK the only way to do it is via custom code.

                                  (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
                                  • A
                                    artistikidea last edited by

                                    Thanks.
                                    I think I'm not capable of it

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

                                    Online Users

                                    Q
                                    E
                                    Q
                                    Q
                                    E

                                    15
                                    Online

                                    146.8k
                                    Users

                                    22.4k
                                    Topics

                                    122.6k
                                    Posts

                                    Powered by NodeBB Forums | Contributors