fxDreema

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

    struct member undefined

    Questions & Answers
    4
    8
    2540
    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.
    • B
      BlueMoon last edited by

      I keep getting the error "struct member undefined" when I try to compile to .ex4.

      How do I fix this?

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @BlueMoon last edited by

        @bluemoon You might share the project here and we may have a look.
        However, compile it 8n strategy tester, see which line the error is and scroll a bit up in order to maybe see which block is causing the error.

        I like to share my knowledge, but expect the others to contribute as well.

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

          Following is the code I see in MetaEditor. Even if I delete this code, it keeps coming back when I import it back in FXDreema.

          My error message complains about "BuySell222"

          public: /* Custom methods */
          virtual datetime _ObjTime1_() {return ObjTime1._execute_();}
          virtual double _ObjPrice1_() {
          	ObjPrice1.Symbol = CurrentSymbol();
          	ObjPrice1.Period = CurrentTimeframe();
          
          	return ObjPrice1._execute_();
          }
          virtual string _ObjText_() {
          	ObjText.Text = v::BuySell222;
          
          	return ObjText._execute_();
          }
          
          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @BlueMoon last edited by

            @bluemoon This bug happens when you insert a variable to some field (so it turns blue), but the builder doesn't actually register it as a variable (for some reason, maybe there was already some value in the field).

            Solution: as Philipps said, go to your metaeditor and find the corresponding block ID -> then return to the builder and re-create that block.

            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

            T 1 Reply Last reply Reply Quote 2
            • B
              BlueMoon last edited by

              Hi Roar

              I am sorry I have not done this before. Can you please provide more specific details about how to find the block ID from Meta Trader. Once I find that block ID, will deleting that block solve the problem?

              Regards

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

                Never mind. I was able to locate the block. Thank you very much for your help Roar and Philipps!!!

                1 Reply Last reply Reply Quote 0
                • T
                  Tom 5 @roar last edited by

                  @roar you have to compile it in the metaeditor, then you get errors with the lines they are in, and in the comment you see the number of the block it is in of fxdreema. This block rebuild and use it. Thanks for the help roar.

                  "First learn! Then earn!" or "As more you learn, as more you earn."

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    trader.philipps @Tom 5 last edited by

                    @BlueMoon Or share your project that we can compile it for you. As @roar said there is a variable you use that is not defined or recognized as a variable. If the compiler complains about BuySell2222 variable, check the variable declaration in fxdreema if it's written the same way.

                    I like to share my knowledge, but expect the others to contribute as well.

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

                    Online Users

                    B
                    A
                    T
                    M
                    E
                    C

                    20
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors