Trouble of constants for My Indicators' input options
-


I am trying to add an option parameter for the Moving Average type in my custom indicator, but I don't know how to configure the parameters correctly.
https://fxdreema.com/shared/bO89E7owc -
You have it almost right, but your shared link doesn't have these constants in, add the shared link with this enum data and I'll see what's wrong.
-
-
You can not create a enum for this as it is already pre defined, ENUM_MA_METHOD is the correct type, MODE_EMA is the correct value:
https//www.mql5.com/en/docs/constants/indicatorconstants/enum_ma_method