fxDreema

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

    input variables of indicators w/ multiple choice to be selectable

    Questions & Answers
    3
    7
    1564
    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.
    • G
      Gmark last edited by

      Hi there
      may I get from you an example on how to set available for modification in the EA inputs (once it is loaded in the chart) for constants such as the different ways to weight ( exponential, smoothed ....) and the price value ( open close High low median...) ... and in general for all the possible values ( array, list) that can then be chosen and applied for any input of indicators with multiple options
      I ve searched in the forum for a while but didnt find any example 😞

      thanks for helping
      🙂
      Mark

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

        You are asking for enumerations. This comes with the data type. There are few basic data types like int, double, bool, string and few others, and there are some special data types that start with ENUM. For MA periods it's called ENUM_MA_METHOD - https://www.mql5.com/en/docs/constants/ ... _ma_method

        There is no one link where I can show you all predefined enumerations. In the MQL4 documentation they are everywhere. You need to know what you are searching in order to find them.

        I will eventually add these, who knows when. It's also interesting that you can create custom enumerations in MQL4/MQL5.

        1 Reply Last reply Reply Quote 0
        • U
          uchiha last edited by

          Also take a look at this personal experimental EA I created,incase you are trying to make a GUI for your EA.

          https://fxdreema.com/shared/q4NQqkQAd

          1 Reply Last reply Reply Quote 0
          • G
            Gmark last edited by

            Hey thanks for the reply
            Yes now I got we are talking about ENUM, my question was about an example on how to apply ENUM and define them in the fxdreema programming/interface ( maybe in variables or what else?)

            tnx again

            Mark

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

              When you create new Constant or Variable, you can put custm data type - double, int, bool... or ENUM_%whatever%

              1 Reply Last reply Reply Quote 0
              • G
                Gmark last edited by

                So if I correctly understand you, for example for the MA i put in the constant as "kind" not string but "ENUM_MA_METHOD" and in the values I provide the default one I want from the options that that ENUM can give?

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

                  Try it. I expect this to work

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  S
                  L
                  E
                  M
                  A
                  H
                  S

                  15
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors