fxDreema

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

    Project randomly wont compile - PERIOD_CURRENT Undeclared?

    Questions & Answers
    5
    14
    696
    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.
    • C
      cmuphyfx last edited by cmuphyfx

      Randomly, yesterday my project decided not to build, I'm getting a compilation error for Period_current. So I downloaded the project file and tried to build it locally. I get the same error here.

      I change the line to Period = (ENUM_TIMEFRAMES)CurrentTimeframe(); And it builds just fine. I then try to load that file back into FXDreema, and build it and I get the same error. Unsure why this is happening?

      Has anyone experienced this before?

      Forgot to mention, this is also happening on older projects that I have not edited in weeks or months. Still not building...

      @roar

      831910dd-1d1f-4620-872a-407eb135e9b8-image.png

      6e67c063-efa7-4dd4-9052-dd5dde679eee-image.png

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

        @fxDreema Did something change in the triple moving average model? Seems like the variable that's giving me trouble is defined inside that indicator constructor. I've never made a constant called PERIOD_CURRENT.

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

          Is the project for MT5? I see mql5 projects are having more issues than usual lately in fxDreema.

          (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
          • C
            cmuphyfx last edited by

            Yes, it is an MT5 project. The issue is with the Tripple Moving average indicator - for some reason, the constructor is looking for a constant variable for the timeframe. I don't have any constants called PERIOD_CURRENT- and this error just popped up randomly on this project and all of the previous projects from the last 6 months that haven't been touched in months... I feel like something happened on the backend. @fxDreema

            public: /* Constructor /
            MDLIC_indicators_iTEMA()
            {
            MAperiod = (int)14;
            MAshift = (int)0;
            AppliedPrice = (ENUM_APPLIED_PRICE)PRICE_CLOSE;
            Symbol = (string)CurrentSymbol();
            Period = (ENUM_TIMEFRAMES)c::PERIOD_CURRENT; //////// This is where the error is being generated from. I don't have any constants called PERIOD_CURRENT
            Shift = (int)0;
            /
            Static Parameters (initial value) */
            digits = (int)SymbolInfoInteger(Symbol, SYMBOL_DIGITS);
            }

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

              @roar Sorry to bug you, do you happen to have any thoughts on this? No idea how the constructor for a tripple moving average indicator could possibly get messed up such that it's looking for a constant that I've never declared?

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

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

                @cmuphyfx it seems to happen on a fresh project with only one condition with TEMA. So it is clearly some typo in the MDLIC_indicators_iTEMA class.

                I cannot fix the source code of fxdreema itself (unfortunately lol), so there's little I can do here. Maybe just get a custom indicator that works the same way as the default TEMA in fxdreema.

                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 1
                • C
                  cmuphyfx last edited by

                  Wow, thank you for checking into this for me! This project is 6 months old and it just stopped working last week. So, there must have been a backend update that broke this... @fxDreema can you help out here?

                  The good news is that I can just download the source file and build locally - it's a bit of a pain but not the end of the world. Thank you, @roar for your help!

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

                    Definitely the admin is touching the mql5 code here.

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

                    hojjat2002 1 Reply Last reply Reply Quote 0
                    • C
                      cmuphyfx last edited by

                      Do we have any idea who can help us (admin side) clear this up? Very annoying to have to download and build myself every time I make a change.

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

                        @cmuphyfx You can replace the default indicator with a custom indicator, then it compiles normally.

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

                          I am getting this error on MT4 EAs as well. All my past projects are affected from yesterday or so. I guess this is a bug.

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

                            @l-andorrà This problem has appeared on all my projects that were working properly since yesterday, and even a project with three blocks is not compiled in some indicators.123.png

                            1 Reply Last reply Reply Quote 1
                            • hojjat2002
                              hojjat2002 last edited by

                              This problem has nothing to do with the work of the project and it can be seen in all three blocks, I suggest that friends who have more experience compile my example project, which is aimless, to understand the issue.[link text](1.mq4 link url)

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

                                That's a proof that the admin is touching the fxDreema's code. You should contact him to let him know.

                                (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

                                M
                                M
                                C

                                13
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors