how to choose methods in indicators
-
Hi, I'm creating an EA, I would like to be able to choose some indicator parameters when I load the EA. For example, if I use the "adx" indicator, I would like to be able to choose "adx mode" and "apply price" from a drop-down menu in the EA, or when I use the "alligator" indicator I would like to be able to choose "MA method " and "Apply price". Could anyone help me? Thanks everyone.
-
You can do any of this, generally create a constant that will change these values
-
An example?
-
Make a start, test, then add a shared link if something's not working, and say what you are trying to do
-
It seems to me that you would need to have multiple inputs for each of the constants that you want to have all parameters available in the EA. This link might help www.mql5.com/en/docs/constants/indicatorconstants/lines
-
The link doesn't help, the choice is yours, you can create an enum to have choices in an enum dropdown, or separate inputs.