Indicator gives no option for enumerations
-


I've got this indicator that I like. It does not give me the option to put an enumeration in the constants, therefore it cannot be used in an optimisation.
I've seen other indicators with constants along the lines of ENUM_MA_METHOD etc which give the option of making the indicator fully optimisable in the EA. In the second photo I've posted what my MT4 brings up when I run the optimise on the EA. Other EA's show the indicators here where you can program the way in which you want the indicators to optimise. My question is, is there any way to make the MA_Period a constant so I can have it customisable in the EA ?Thanks as always, Josh
-
Or maybe I need to create a variable for it as I would like it to be customisable ?
-
You need to add the constant, then to the box, to have it in your inputs
-
Hey man, thank you for your reply, also, thank you for authoring your book on fxd. I tried puttin the constant in the box but when I complie it, the EA gives me a funky reading.
-
Constant setup https://prnt.sc/9OPMO0wkyzn6https://prnt.sc/9OPMO0wkyzn6
-
The name you have probably doesn't matter but the 0 does on meta trader MA's do not use a 0 number, replace this with a number greater than 1 and it will likely work. Rather than typing the name right-click and add, although you can write, and add code there, right-click eliminates problems. Thank you for your comment on my book.
-
Man, that was it ! Thank you ! The explanation will also help in the future. Cheers dude

-
You are welcome