fxDreema

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

    How do I have drop down parameterised for optimisation

    Questions & Answers
    3
    5
    1790
    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
      jzfusion last edited by

      How do I have drop down parameterised for optimisation. I want to give it a name so it appears in the options rather than the technical reference.

      0_1582757345026_Screenshot 2020-02-26 at 22.47.44.png

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @jzfusion last edited by trader.philipps

        @jzfusion Define a constant for the desired field

        For MA method use datatype ENUM_MA_METHOD
        See valid values (for default value) here: https://www.mql5.com/en/docs/constants/indicatorconstants/enum_ma_method

        For MA price use datatype ENUM_APPLIED_PRICE
        See valid values (for default value) here: https://docs.mql4.com/constants/indicatorconstants/prices
        0_1582771088133_9b6a7b68-d3d8-4338-ad4e-414b8872ffcc-image.png

        Once you define the constants, you can use them each time you use the MA indicacator by rightclick on the correspondant field.

        0_1582771210843_908138b5-3579-4938-9548-170c585e2eb6-image.png

        I like to share my knowledge, but expect the others to contribute as well.

        T 1 Reply Last reply Reply Quote 1
        • J
          jzfusion last edited by

          Thanks
          @trader-philipps

          But how do I deal with things like the single candle template?
          Like this.
          I want to be able to have all the upperwick and lowerwick modes available as options in the EA.

          0_1583678360719_Screenshot 2020-03-08 at 14.38.21.png

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            In those cases I would say you should have to use a custom code block. Not sure, though.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            1 Reply Last reply Reply Quote 0
            • T
              trader.philipps @trader.philipps last edited by

              @trader-philipps said in How do I have drop down parameterised for optimisation:

              @jzfusion Define a constant for the desired field

              For MA method use datatype ENUM_MA_METHOD
              See valid values (for default value) here: https://www.mql5.com/en/docs/constants/indicatorconstants/enum_ma_method

              For MA price use datatype ENUM_APPLIED_PRICE
              See valid values (for default value) here: https://docs.mql4.com/constants/indicatorconstants/prices
              0_1582771088133_9b6a7b68-d3d8-4338-ad4e-414b8872ffcc-image.png

              Once you define the constants, you can use them each time you use the MA indicacator by rightclick on the correspondant field.

              0_1582771210843_908138b5-3579-4938-9548-170c585e2eb6-image.png

              Is this really your use case? You might try to use integer variables starting from 0 for the choices. But as the number of input fields vary from the choice I think, best approach would be as @l-andorrà says to use a custom code block for that.

              I like to share my knowledge, but expect the others to contribute as well.

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

              Online Users

              C
              I
              I
              E
              E
              O
              O
              D
              F
              K

              24
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors