fxDreema

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

    drop-down menu in indicators method

    Questions & Answers
    3
    5
    173
    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.
    • S
      saeed123 last edited by

      hello,
      i want to have a drop-down menu to select a moving avg method (simple, exponential,...) in expert.
      i defined a "enum: ma_method_list: {simple,exponential,smoothed,weighted}",
      then
      ma_method_list: ma_method : simple.
      my purpose:
      i want everytime do cross between movings, do buy
      now i want have a choice to select movings methods by drop menu in expert.

      project link share: shared/P34zLsuZ
      ![alt text](![image url](image url))

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

        Type= ENUM_MA_METHOD - name= your choice - value= simple, this will give you a dropdown in your inputs, right click and add this constant in your 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
        • S
          saeed123 last edited by

          thank you but i got an error.

          U 1 Reply Last reply Reply Quote 0
          • U
            Uriel 0 @saeed123 last edited by

            @melmdoost write it like this:

            Type: int Name: MA_Period1 Value: 5

            Type: ENUM_MA_METHOD Name: MA_Method1 Value: MODE_SMA

            Type: ENUM_APPLIED_PRICE Name: MA_Apply1 Value: PRICE_CLOSE

            cbcceb48-1716-4dd9-8ed6-0ce1653ee0bb-image.png

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

              Add a shared link, you seem to of added too much information

              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

              N
              C
              S
              S
              P
              C

              10
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors