fxDreema

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

    Need Help With Custom Indicator Input Parameter

    Questions & Answers
    2
    21
    1319
    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.
    • F
      FiboBlade last edited by

      Hello experts.

      avgs (any timeframe).ex4

      https://fxdreema.com/shared/aEgKTJ7de

      Attached is the indicator file.
      I've add it in My Indicators, but i want to optimize 2 input as in the image below, but i don't know how to do enum for the methods. Please help. Thank you.

      inputparam-01.png

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

        The period is likely simple, create an int constant insert into the indicator block by right-clicking, then while optimising loop through the numbers.

        The principle is likely the same for Ma method but, you will need to use the MQ lines:
        https://docs.mql4.com/constants/chartconstants/enum_timeframes
        type = ENUM_TIMEFRAMES
        name = anything you want
        value = PERIOD_CURRENT (you can choose this and it will create a drop-down in your inputs)
        I don't know if you can optimize through this dropdown

        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
        • F
          FiboBlade last edited by

          Ok @jstap. Can FxDreema read the indicator if we set the timeframe other than standard minutes, like 20 minutes, 2 hours?

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

            Not exactly, but if that is set in the EA inputs, then the EA can use this value to know what the EA is using, MT5 has other timeframes to MT4, but both can only use the pre set values

            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
            • F
              FiboBlade last edited by FiboBlade

              I try this but no pull down menu. It become like string.

              Untitled-2-01.png

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

                That list needs to be identical to the indicator inputs, spelt the same in the same order

                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
                • F
                  FiboBlade last edited by

                  can you help me make 1 example please.

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

                    You have a picture with 1/2 of what you need: your

                    1st input is int Time frame Current time frame
                    2nd input is string Button unique ID averageb1

                    complete all like this

                    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
                    • F
                      FiboBlade last edited by

                      So i need to follow the sequence from 1-5 to get the Period and Ma method in the list?

                      1 Reply Last reply Reply Quote 0
                      • F
                        FiboBlade last edited by

                        Is this correct? Still like string.

                        Untitled-2-01.png

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

                          Yes and it is not written as a number, may need to be as it is in the indicator input, or possibly how it is on the MQ forum

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

                            By looking at your picture they are in as an int, this can and will be a number 1-2-3-4-5-6-7-8-9-10-11 etc

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

                              your list is
                              int
                              string
                              int
                              int
                              int
                              bool
                              double
                              int

                              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
                              • F
                                FiboBlade last edited by

                                Oh, my mistake. Yes the period suppose to be int.

                                oh, okay, i try it first.

                                1 Reply Last reply Reply Quote 0
                                • F
                                  FiboBlade last edited by

                                  Do you mean Price & Method also int? And the value should be Number or same text as in the indicator?

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

                                    looks like it but maybe an enum, if enum you will need to add information at the top, with the same words from your inputs, looking like this picture:
                                    image.png

                                    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
                                    • F
                                      FiboBlade last edited by

                                      Oh man, i really don't understand this..

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

                                        these are enum
                                        Follow the picture I sent like this
                                        enum Time frame
                                        {
                                        Current time frame,
                                        1 minute,
                                        2 minute,
                                        continue this until you have covered all
                                        };

                                        If you have the MQ file this will be added automatically

                                        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
                                        • F
                                          FiboBlade last edited by

                                          @jstap something wrong. After i type everything in, when i press update button, everything gone.

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

                                            I don't know if done correctly it works for me

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

                                            Online Users

                                            Q
                                            C
                                            T
                                            S
                                            A
                                            M
                                            R
                                            G
                                            G
                                            Y
                                            C
                                            S
                                            S

                                            26
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors