fxDreema

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

    Absolute absurdity of "array out of range" bug or not?

    Questions & Answers
    0
    6
    640
    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.
    • W
      William29 last edited by

      If you ever come across this error you have my condolences.
      I had.
      And it drone me fucking nuts.

      Here's what I've done to fix it.

      Step 1: Isolate the issue.
      Need to find what causing it. Best thing to do is delete chunks of block and test if you get the error. You narrow it down and down until you find your problem.

      Now this is standard way of doing it, but with "array out of range" is different. Issue could be a block like Ones Per Bar or in my case it was modify variable block that has only job, set stop loss price level to a StopLoss variable.

      Step 2. Migrate the problematic block to other than OnTick tab so it would work correctly.

      Step 3. (if step 2 didn't work) try different angle on the EA of how it should do things.

      As long as that block was in the EA it give me error. The worst part you have no fucking clue what it means or what it wrong, Its like searching a needle in a stack of hay just you dont even know you looking for a needle.

      Anyway what fixed my problem was to move the block from OnTick to OnTrade. Which made no sense since block was always accompanied by If Trade to get value when you have actual trade going on.

      My theory this is compilation bug. It is weird that I have other projects and the same setup where these blocks are on tick and they work fine.

      If anyone has had issues with it PLEASE post how to fixed it bellow. OR if you can explain what causes the issue. Any info on the matter!

      I've spend 6 hours on this and went as far as to completely recreate EA but ended up with the same.

      0_1673187825893_b578170e-5f4b-4f25-a798-a67f83dc539c-image.png

      TipsyWisdom l'andorrà 2 Replies Last reply Reply Quote 1
      • TipsyWisdom
        TipsyWisdom @William29 last edited by TipsyWisdom

        If you open the MQ file in editor and try to compile it, it will then call out the specific block with the problem. (future easier way to find problems)

        1 Reply Last reply Reply Quote 0
        • W
          William29 last edited by

          yes but its shit use if you're not mql4 language literate and you don't know what you're looking at.

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

            @william29 Thank you for sharing this info.

            (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
            • W
              William29 last edited by

              UPDATE:
              I think I've found what's the issue with this error.

              Its directly tied wrong tab when selecting variable:
              (in loop) Trade/Order in Loop - you can use that on any Tab. (needs testing)
              (on Chart) Event Data - only on Chart tab.
              (on Trade) Event Data - only on Trade tab.

              So if you (on Tick) want to get data from lets say (on Trade) Event Data it will give this error.

              All you have to do is move that block that you use to get variable to correct tab.

              It's silly and I never given much of a though a why there are specified tabs well now we know.

              It would be good if admin would add some explanation.

              TipsyWisdom 1 Reply Last reply Reply Quote 0
              • TipsyWisdom
                TipsyWisdom @William29 last edited by

                @william29 said in Absolute absurdity of "array out of range" bug or not?:

                UPDATE:
                I think I've found what's the issue with this error.

                Its directly tied wrong tab when selecting variable:
                (in loop) Trade/Order in Loop - you can use that on any Tab. (needs testing)
                (on Chart) Event Data - only on Chart tab.
                (on Trade) Event Data - only on Trade tab.

                So if you (on Tick) want to get data from lets say (on Trade) Event Data it will give this error.

                All you have to do is move that block that you use to get variable to correct tab.

                It's silly and I never given much of a though a why there are specified tabs well now we know.

                It would be good if admin would add some explanation.

                https://fxdreema.com/documentation/builder/expert-advisors

                bottom of page. I guess I thought that was fairly common knowledge

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

                Online Users

                A
                A
                E
                B
                M
                J
                B

                19
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors