input variables of indicators w/ multiple choice to be selectable
-
Hi there
may I get from you an example on how to set available for modification in the EA inputs (once it is loaded in the chart) for constants such as the different ways to weight ( exponential, smoothed ....) and the price value ( open close High low median...) ... and in general for all the possible values ( array, list) that can then be chosen and applied for any input of indicators with multiple options
I ve searched in the forum for a while but didnt find any example
thanks for helping

Mark -
You are asking for enumerations. This comes with the data type. There are few basic data types like int, double, bool, string and few others, and there are some special data types that start with ENUM. For MA periods it's called ENUM_MA_METHOD - https://www.mql5.com/en/docs/constants/ ... _ma_method
There is no one link where I can show you all predefined enumerations. In the MQL4 documentation they are everywhere. You need to know what you are searching in order to find them.
I will eventually add these, who knows when. It's also interesting that you can create custom enumerations in MQL4/MQL5.
-
Also take a look at this personal experimental EA I created,incase you are trying to make a GUI for your EA.
-
Hey thanks for the reply
Yes now I got we are talking about ENUM, my question was about an example on how to apply ENUM and define them in the fxdreema programming/interface ( maybe in variables or what else?)tnx again
Mark
-
When you create new Constant or Variable, you can put custm data type - double, int, bool... or ENUM_%whatever%
-
So if I correctly understand you, for example for the MA i put in the constant as "kind" not string but "ENUM_MA_METHOD" and in the values I provide the default one I want from the options that that ENUM can give?
-
Try it. I expect this to work