fxDreema

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

    Can anyone help me with this error. "Compilation errors 'BuyOrSell' - constant expected 'BuyOrSell' - constant expected.

    Questions & Answers
    3
    14
    2560
    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.
    • G
      Glen Mckinnie last edited by

      I am using one of the examples for the 3 moving averages and when I clicked on Ex4 to compile it that is what I get.

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

        @glen-mckinnie Can you share your project please?

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

        1 Reply Last reply Reply Quote 0
        • G
          Glen Mckinnie last edited by

          Ok let me see if I can add it.0_1573862534411_3 9 50 ema.mq4

          1 Reply Last reply Reply Quote 0
          • G
            Glen Mckinnie last edited by Glen Mckinnie

            0_1573863552117_COMPILATION ERROR.jpg

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

              @glen-mckinnie ^Well, I can import your mq4 file in my project and compile without errors. Maybe try to do the same?!

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

              G 3 Replies Last reply Reply Quote 0
              • G
                Glen Mckinnie @trader.philipps last edited by

                @trader-philipps Ok maybe I am doing something wrong. When I click on the Mq4 file and compile it I get this....0_1573903862996_Errors and warnings.jpg

                1 Reply Last reply Reply Quote 0
                • G
                  Glen Mckinnie @trader.philipps last edited by

                  @trader-philipps If you can compile it with no errors can you send me the Ex4 and mq4 file with no errors that you compiled?

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    CPxiom @Glen Mckinnie last edited by

                    @glen-mckinnie Try to compile directly from fxdreema, the ex4 button.

                    G 1 Reply Last reply Reply Quote 1
                    • G
                      Glen Mckinnie @CPxiom last edited by

                      @cpxiom I did thats when I get the first picture I posted with the 2 buyorsell constant errors expected

                      1 Reply Last reply Reply Quote 0
                      • G
                        Glen Mckinnie last edited by

                        This is what it is asking me for when I compile it.. I dont know what goes in there0_1573905461883_Constants.jpg

                        C 1 Reply Last reply Reply Quote 0
                        • C
                          CPxiom @Glen Mckinnie last edited by CPxiom

                          @glen-mckinnie Just add BuyOrSell in the name field, and click update. If it is interger add "int" instead of double. Uppercase lowercase is important, as far as I know.

                          G 1 Reply Last reply Reply Quote 0
                          • G
                            Glen Mckinnie @CPxiom last edited by

                            @cpxiom Ok I put BuyOrSell in the name field and changed to int and it is still showing same error

                            1 Reply Last reply Reply Quote 0
                            • G
                              Glen Mckinnie @trader.philipps last edited by

                              @trader-philipps Im wondering if it may be because I am not a paid Member..

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

                                @glen-mckinnie Okay, I did export only. Checked the source code again.
                                0_1573952880989_38afa250-dc0f-4ac5-be98-d8b6c56467ca-image.png

                                Unckeck the 2 backtesting if you use a variable as input. You may use a constant instead in order to have variable values with MT4 optimization.

                                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

                                S
                                E
                                S
                                K
                                S
                                G

                                21
                                Online

                                146.6k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors