DEMA & TEMA as an option to choose
-
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:


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
-
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.
-
Hello fxDreema
Thanks for answering. I have been able to buil somthing similar by using the "condition" block. It looks like this

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
-
Hello
I have been trying this DEMA & TEMA , please can give all the help I need.
Michael mikeo.dig@gmail.com -
Hi mikeo123
Here you have an example. I hope it helps you.
https://fxdreema.com/shared/98isCajHd
Regards
-
Hi, I need to get DEMA to switch at the MA place, how can I get it can you help me please?
thank you