fxDreema

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

    Indicator gives no option for enumerations

    Questions & Answers
    2
    8
    254
    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.
    • J
      joshuafelice last edited by

      9e0f66bc-cbec-4dfc-bf80-4a0179724318-image.png

      5f66a641-896c-4e54-8ba3-9215102af1db-image.png

      I've got this indicator that I like. It does not give me the option to put an enumeration in the constants, therefore it cannot be used in an optimisation.

      I've seen other indicators with constants along the lines of ENUM_MA_METHOD etc which give the option of making the indicator fully optimisable in the EA. In the second photo I've posted what my MT4 brings up when I run the optimise on the EA. Other EA's show the indicators here where you can program the way in which you want the indicators to optimise. My question is, is there any way to make the MA_Period a constant so I can have it customisable in the EA ?Thanks as always, Josh

      1 Reply Last reply Reply Quote 0
      • J
        joshuafelice last edited by

        Or maybe I need to create a variable for it as I would like it to be customisable ?

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

          You need to add the constant, then to the box, to have it in your inputs

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

            Hey man, thank you for your reply, also, thank you for authoring your book on fxd. I tried puttin the constant in the box but when I complie it, the EA gives me a funky reading.

            https://prnt.sc/BnS0xDqwOCcc

            1 Reply Last reply Reply Quote 0
            • J
              joshuafelice last edited by

              Constant setup https://prnt.sc/9OPMO0wkyzn6https://prnt.sc/9OPMO0wkyzn6

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

                The name you have probably doesn't matter but the 0 does on meta trader MA's do not use a 0 number, replace this with a number greater than 1 and it will likely work. Rather than typing the name right-click and add, although you can write, and add code there, right-click eliminates problems. Thank you for your comment on my book.

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

                  Man, that was it ! Thank you ! The explanation will also help in the future. Cheers dude 🙂

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

                    You are welcome

                    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

                    I
                    E
                    E
                    O
                    O
                    D
                    F
                    K
                    C
                    E

                    22
                    Online

                    146.6k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors