Can condition block parameters be put in variables
-

-
Yes modify variables
-
@jstap Can you illustrate as you say how from the example above you can modify the parameter to accommodate more than two values using one variable.
-
That a condition, create the variable you want, then save it using modify, with the same settings you have in the picture
-
@jstap I want only the parameter value to change but these other values should remain. Using the modify variables block we have to change everything
-
@jstap
For example how can we modify the METHOD variable to switch between the given options without affecting other parameters -
You can change the variable in a separate tree, so only one aspect is changed
-
@jstap How do you even put such an aspect to a variable
-
Do you want something to change this or for you to be able to change in the inputs?
TYPE = ENUM_MA_METHOD
VALUE = MODE_SMA
name it what you want -
@jstap I want a shared example of how these parameters can be put as variables and how they can be modified
-
Add that to a project, I will check and say if it's right. To modify set with a modify block, and above have blocks that tell modify to modify
-
@jstap I have something like this

-
@jstap Where do we get these TYPES AND VALUES from?
-
https://docs.mql4.com/constants/indicatorconstants/enum_ma_method
You might be better to use the int value to select/change, the words work best for constants, if automatically changing, you need blocks (probably in a separate tree) changing this value as required. -
@jstap So where do we use the int value to change if the type is already selected
-
In the link it shows you the int value for the type, so basically change the value in the variable, and the type in the block should change
-
@jstap I don't understand that explanation. Kindly show me where am wrong in the image below whereby the variable METHOD original value is MODE_SMA and now I want to modify it to MODE_EMA...

-
Although it is written in text I don't think this will work, use the equivalent int numbers 0,1,2,3,4
-
@jstap Do you mean this values?

-
Yes.....