fxDreema

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

    What causes stack overflow error in mql4?

    Questions & Answers
    2
    10
    657
    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.
    • Z
      zearma last edited by zearma

      Hello, What causes stack overflow error in mql4 during compiling? when i increase the loop that look for previous candles the ea introduce the stack overflow error.

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

        Does your loop ever end?

        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
        • Z
          zearma last edited by zearma

          @roar yes it end, then the ea doesn't complete the compiling. it looks like he reach some memory limit or mybe compiling timeout

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

            Can you show the error log of the metaeditor when you try to compile?

            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
            • Z
              zearma last edited by zearma

              @roar i mean its only happen when i a attach the EA to the chart and increase the count. also there is no compiling error in the metaeditor

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

                Ok, so compiling is not the problem here.
                I need to see the loop and when does the loop end.

                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
                • Z
                  zearma last edited by

                  @roar basically the loop its start from a highest candle of a day and keep decreasing the value by 1 to check if there is a higher candle in front until the candle id 1.

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

                    @zearma yes, but there is some oversight neither of us can see right now.

                    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
                    • Z
                      zearma last edited by

                      @roar i add this property to the EA and i increase the size and its work fine now #property stacksize 52345600
                      Thanks Anyway .

                      1 Reply Last reply Reply Quote 0
                      • Z
                        zearma last edited by

                        @roar is there away to add #property from fxdreema

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

                        Online Users

                        M
                        L
                        N
                        Q
                        A
                        F
                        S
                        T
                        A
                        P
                        K
                        M
                        M
                        E

                        26
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors