fxDreema

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

    DEMA & TEMA as an option to choose

    Questions & Answers
    4
    6
    2045
    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
      josecortesllobat last edited by

      Hello

      I want to know if it is posible to add the DEMA &/or TEMA to the dropdown menu to slect the smoothing methods for a Moving Average.

      Now I have my MQ5 EA with the option to choose what kind of smoothing I want for the MA:

      0_1510743775940_10e4346a-d180-4823-96f0-cc129aa47ae9-image.png

      0_1510743820482_9d9d4e72-13d5-4a60-a0f5-a9ae70eda8cc-image.png

      DEMA & TEMA indicators are available but can only be selected as different indicator than the MA.

      Is it possible in anyway to add those indicators to the dropdown menu where I am able to choose what kind of MA will be used or optimized for the EA?

      Thanks

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

        ENUM_MA_METHOD is just a predefined enumeration: https://www.mql5.com/en/docs/constants/indicatorconstants/enum_ma_method

        It has 4 possible values obviously. This enumeration is meant to be used in MA and some other indicators. This enumeration is created by MetaQuotes, not by me. I don't think that you can use different value in MA to make it work like DEMA. You can try with values like 4, 5, 6 and so on... but I don't think it will work.

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

          Hello fxDreema

          Thanks for answering. I have been able to buil somthing similar by using the "condition" block. It looks like this

          0_1511206873470_9ce36614-d145-463e-9c97-e9a3d9fce43e-image.png

          I have a constant called MA type with the values 0 = MA, 1 = DEMA, 2 = TEMA to allow the optimizer to choose whichever is better.

          Thanks

          Regards

          1 Reply Last reply Reply Quote 0
          • M
            mikeo123 last edited by

            Hello
            I have been trying this DEMA & TEMA , please can give all the help I need.
            Michael mikeo.dig@gmail.com

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

              Hi mikeo123

              Here you have an example. I hope it helps you.

              https://fxdreema.com/shared/98isCajHd

              Regards

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

                Hi, I need to get DEMA to switch at the MA place, how can I get it can you help me please?
                thank you

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

                Online Users

                F
                A
                H
                A
                S
                M

                14
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors