fxDreema

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

    Anyone knows how to deal with Error 4002?

    Questions & Answers
    6
    23
    4927
    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.
    • l'andorrà
      l'andorrà last edited by

      I created this mql5 project using some MA crossings:

      https://fxdreema.com/shared/0cGW7Cuad

      I cannot backtest it because I get a weird error mesage saying: Error: Indicator not handled. (handle=-1 | error code=4002). Cannot load indicator 'Moving Average' [4002]

      I never had an issie like this. These are the blocks including MA conditions:

      0_1636117980970_01.png

      I reviewed over and over and I simply can't see what the problem is. Could someone please take a look at it? 😞

      (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 AlphaOmega U jstap 4 Replies Last reply Reply Quote 0
      • T
        TalalKhan @l'andorrà last edited by TalalKhan

        @l-andorrà Bro check your parameter types and positions carefully.

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

          @talalkhan I did it more than 10 times and I see no problem! What do you mean?

          (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
          • AlphaOmega
            AlphaOmega @l'andorrà last edited by AlphaOmega

            @l-andorrà brother looks like something is out of date
            0_1636136511990_c161e51c-58ab-474c-95ce-3a6af6d54c96-image.png
            or
            a setting needs to be changed

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

              @l-andorrà
              There can be one of these problem in your project
              There is something wrong in your parameter or the other one is the indicator is not ready yet because You can't call iMA (or a function to get an indicator handle in general) and in the next statement use CopyBuffer, If you really used like this than change iMA in OnInit and CopyBuffer in Ontick.

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

                @alphaomega This is not the problem. I always empty that space and this is why you get that message. The error is somewhere in the MA, but I can't see where.

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

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

                  @talalkhan But what do you exactly mean by 'parameter'? Input parameter, variable or what?

                  (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
                  • AlphaOmega
                    AlphaOmega @l'andorrà last edited by

                    @l-andorrà Sorry brother... then I do not know how to help you... up to the higher education then... good luck!!

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

                      @l-andorrà Yes¡¡ The same error I got on MT5 journals :(((((

                      U 1 Reply Last reply Reply Quote 0
                      • U
                        Uriel 0 @Uriel 0 last edited by

                        0_1636225629550_cabb720d-4f09-452c-9017-d3de46166de5-image.png

                        Same error suffered 4002

                        I hate MT5 update

                        Post:
                        https://fxdreema.com/forum/topic/13653/indicator-fall-block

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

                          @l-andorrà Is this just because every MA block is either switched off or has a switched off block above? I have never seen blocks work if above is switched off.

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

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

                            @jstap Well, as far as I checked them all, no MA block is switched off when the proper input indicator is selected. I tested that same logic on MT4 and it works fine, so the issue is in MT5 for sure. The admin needs to know this.

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

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

                              @l-andorrà Sometimes MT5 is different to MT4, shame but true.

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

                                When I tested this, I got error for RSI, not for MA. I deleted all unnecessary blocks until I ended up only with block 134 (and one Pass block). In this block, a Constant is used for "RSI period" and that Constant is named RSI_period.

                                0_1636402526462_1fe393ea-457e-4e78-82ad-10422177b469-image.png

                                I noticed that if I remove the Constant, the EA works. When I put it back - it gives me error 4002. So I focused on the Constant.

                                After some investigation I found the problem. Look at this screenshot:
                                0_1636401702657_d8fee72b-8867-48d3-b36c-c128b633d720-image.png

                                I removed all Constants except RSI_period. But note that its Value is 0. This is interesting, because in the EA builder I changed it to 14. I also exported .mq5 file and changed the value there as well. However, it seems that there is some caching happening here and the value doesn't change when I change it in the code.

                                Such caching also happens in MT4, I'm aware about it, but there it only happens after I manually go to change any of these values. But this can only happen when I want to run the Optimization process, which is rare for me. So normally I never touch the Inputs. They are never cached, so I'm free to change the values of the Inputs in the project itself via the Constants.

                                Maybe they introduced this into MT5, to always cache the Inputs. And you see that error 4002, because some of your values are still 0. Turns out that if you try to run RSI or MA with period 0, this particular error appears. Its meaning in the documentation is "Wrong parameter in the inner call of the client terminal function"

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

                                  @fxdreema So are you suggesting that we should not use any value 0 for any constant that is used on any indicator? I think I understand the problem, but not get the solution, sorry.

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

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

                                    @l-andorrà said in Anyone knows how to deal with Error 4002?:

                                    @fxdreema So are you suggesting that we should not use any value 0 for any constant that is used on any indicator? I think I understand the problem, but not get the solution, sorry.

                                    Now I don't think that this is a new behaviour in MT5. I found that the files where these values are cached are located in MQL5/Profiles/Tester, they are .set files. I found many files there, almost as many EAs I have in MQL5/Experts. And these files are created since 2017 and even 2016.

                                    Maybe nothing is different, maybe only now you have this problem with this EA, because it has too many Inputs and you forgot to set at least one of them.

                                    I actually still do most of my tests in MT4, and I don't use Constants very often in my own projects. Only sometimes when I work on someone else's project I choose to change these values. And I normally assume that if someone shows me his project that contains Constants, the values for them are correct. So I don't have a good chance to fall into this problem. Also, when I have Constants/Inputs, I'm aware that they are there and I expect such problems.

                                    I think that MetaTrader should alert us when there is a change in the Input values in the code, or maybe automatically change those values that are changed in the code.

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

                                      @fxdreema What do you exactly mean by 'you forgot to set at least one of them'? All of them are set to 0 by default as you can see in the Constants. Should I remove any of those .set files? If so which ones?

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

                                      B 2 Replies Last reply Reply Quote -1
                                      • B
                                        Byens @l'andorrà last edited by

                                        @l-andorrà Do you find solution for this? Any hint?

                                        https://entrepreneurstart.pw | https://www.mql5.com/en/users/byens8199

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

                                          @l-andorrà i have tried what change input with variable and it works.... see this screenshot

                                          0_1673927253151_2674424f-c3d5-4432-9946-ebdb30152d03-image.png

                                          https://entrepreneurstart.pw | https://www.mql5.com/en/users/byens8199

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

                                            sorry still not working

                                            https://entrepreneurstart.pw | https://www.mql5.com/en/users/byens8199

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

                                            Online Users

                                            C
                                            T
                                            S
                                            A
                                            M
                                            R
                                            G
                                            G
                                            Y
                                            C
                                            S
                                            S

                                            25
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors