fxDreema

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

    Multidimensional Arrays

    Questions & Answers
    6
    12
    3202
    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.
    • H
      hamedonline last edited by hamedonline

      Hi everyone,
      I need to declare and use multidimensional arrays (which are obviously supported by MQL4, up to four dimensions):
      https://book.mql4.com/variables/arrays

      The problem rises when you declare an array with more than one dimension in fxDreema's Project Variables. It gets trimmed to one dimension after you apply your changes.
      var_array[10][2] => var_array[10]

      I'd appreciate if anyone would share his/her solution to this problem, @fxDreema and @miro1360 help needed 🙂

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        this functionality can add only @fxDreema

        Between trading and gambling is a very small gap, be careful.

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

          I can check that

          H 1 Reply Last reply Reply Quote 0
          • H
            hamedonline @fxDreema last edited by

            @fxdreema eagerly waiting to see it implemented, thanks 🙂

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

              Hey, is this implemented in fxdreema yet? I'd like to make an array that has separate "rows" for each pair.

              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

              1 Reply Last reply Reply Quote 0
              • M
                miro1360 last edited by

                yes it is implemented
                https://fxdreema.com/shared/5rvzn7pN

                Between trading and gambling is a very small gap, be careful.

                1 Reply Last reply Reply Quote 1
                • C
                  coolazice last edited by

                  Hi,

                  I am looking to create a simple one-dimensional array that holds the current price of a pair when a condition is met and then repeats the cycle continuously for as long as the EA runs.

                  The array size can be modified by specifying it as an input when needed and every new price occupies the first array cell while moving the older prices back.

                  How do I reference the cell that I need for calculations in the EA. Please help me with this inquiry and make as clear as possible with example(s) if you can, thanks.

                  Illustration with a 5 cell array:
                  Cell 1 Cell 2 Cell 3 Cell 4 Cell 5
                  After first 30 seconds Price 1 0 0 0 0
                  After second 30 seconds Price 2 Price 1 0 0 0
                  After third 30 seconds Price 3 Price 2 Price 1 0 0
                  After fourth 30 seconds Price 4 Price 3 Price 2 Price 1 0
                  After fifth 30 seconds Price 5 Price 4 Price 3 Price 2 Price 1

                  After sixth 30 seconds Price 6 Price 5 Price 4 Price 3 Price 2
                  After seventh 30 seconds Price 7 Price 6 Price 5 Price 4 Price 3
                  After eighth 30 seconds Price 8 Price 7 Price 6 Price 5 Price 4
                  After ninth 30 seconds Price 9 Price 8 Price 7 Price 6 Price 5
                  After tenth 30 seconds Price 10 Price 9 Price 8 Price 7 Price 6

                  And so on and so forth...

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

                    Here you have a good insight on arrays in fxDreema:

                    https://fxdreema.com/forum/topic/15808/loop-for-array

                    (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.

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      coolazice last edited by

                      Array description.jpg

                      1 Reply Last reply Reply Quote 0
                      • C
                        coolazice last edited by

                        Can you give me an idea on how I can fill the following two arrays (both one dimensional).

                        VAR X is the input to the first index of array one and the first index of array two is the input to the second index of array one and so on and so forth as shown.

                        I also want to be able to expand the array size from 5 to 10 or any other number if need be. Thanks

                        Array description.jpg

                        1 Reply Last reply Reply Quote 0
                        • C
                          coolazice @l'andorrĂ  last edited by

                          @l-andorrĂ  Hi, this is what I am trying to achieve, the link you referenced me to did not help me much. Can you give me an idea on how I can fill the following two arrays (both one dimensional).

                          VAR X is the input to the first index of array one and the first index of array two is the input to the second index of array one and so on and so forth as shown.

                          I also want to be able to expand the array size from 5 to 10 or any other number if need be. Thanks

                          Array description.jpg

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

                            Man, I'm still learning how array works. 🙂 What you want goes beyond my comprehension, I'm afraid. I hope roar can give us a hand, because I find this very interesting.

                            (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

                            R
                            R
                            G
                            K
                            M
                            M
                            S
                            E

                            29
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors