fxDreema

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

    custom indicator with ENUM as optimazation variable

    Questions & Answers
    2
    9
    163
    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
      bartcuijpers last edited by

      I created a custom indicator which uses a custom ENUM.
      How can I use this ENUM parameter as input for optimazation?

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

        Need more information, add a shared link and say what you are struggling with

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

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

          Take a look here;
          https://fxdreema.com/shared/mtyMiHVE

          I want the 'fromCluster' parameter to be a user defineable paramater, just like the other paramaters.

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

            @jstap Take a look here;
            https://fxdreema.com/shared/mtyMiHVE

            I want the 'fromCluster' parameter to be a user defineable paramater, just like the other paramaters.

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

              I see, try this in constants,

              type enum, name fromClusterlist, value {Best,Worst,Average}
              type fromClusterlist, name fromCluster, value Best

              This will give you a list in inputs, otherwise use this enum list to create different trees using whichever option required from condition blocks.

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

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

                @jstap This returns the following error on compilation:

                Compilation errors
                
                'fromCluster' - identifier already used
                ambiguous access, can be one of:
                'c' is not a class, struct or union
                'fromCluster' - some operator expected
                'c' is not a class, struct or union
                'fromCluster' - some operator expected
                

                https://fxdreema.com/shared/VTSmX6eve

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

                  Put the indicator here and I'll have a look, maybe try a different name

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

                    It's this one; https://www.luxalgo.com/library/indicator/SuperTrend-AI-Clustering/

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

                      I was trying to help you but I am not signing up anywhere to do so. Create a different name enum so when selected in input it activates different blocks.

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

                      Online Users

                      F
                      E
                      F

                      9
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors