fxDreema

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

    '::' - comma expected - Pt 2*

    Questions & Answers
    3
    9
    259
    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.
    • Morpheus_0
      Morpheus_0 last edited by

      Ok. I've been at this for hours!!

      I'm trying to compile my EA but keep getting the '::' - comma expected' error msg between Fixed and Percentage...

      But there IS a comma there...!

      So what am I missing....!?

      Screenshot 2024-09-02 at 22-02-30 Tauriel Scalper Ultimate BTC Test.png

      1 Reply Last reply Reply Quote 0
      • D
        Duelistking last edited by Duelistking

        enum
        {
        fixed=0, // fixed
        percentage =1//percentage
        };

        value
        0 or 1

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

          Thanks for the reply....But I want the words Fixed and Percentage in the drop down menu....

          Strange thing is it was working before, and then I changed something and now it's not 😕

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

            This should work, but I don't use a space after a comma, try deleting it.

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

              Another thing enum's need to be above where you use them, you have this correct but in case I put them at the top of the list. It is so that when added to the terminal the enum lists are loaded before they are used.

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

              Morpheus_0 1 Reply Last reply Reply Quote 1
              • Morpheus_0
                Morpheus_0 @jstap last edited by

                @jstap said in '::' - comma expected - Pt 2*:

                Another thing enum's need to be above where you use them, you have this correct but in case I put them at the top of the list. It is so that when added to the terminal the enum lists are loaded before they are used.

                Ok...I might try putting all the enum's at the top and see if that makes a difference....

                Also, I've tried with no space after comma...Same result...

                Thanks again for replying*

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

                  Add a shared link and I'll look at it.

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

                    Thanks jstap for always replying....

                    I believe I may have almost solved it....Just hours of trial and error....as you can relate to 😄

                    jstap 1 Reply Last reply Reply Quote 0
                    • jstap
                      jstap @Morpheus_0 last edited by

                      @Morpheus_0 👍

                      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
                      • 1 / 1
                      • First post
                        Last post

                      Online Users

                      J
                      A
                      Z
                      T

                      15
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors