Lack of support to "enum" datatype
-
FxDreema doesn't support enum datatypes. Some great coders, such as Mladen, are using enum frequently for Price type. Even when I imported one of his "mq4" indicators that has enum Price type I could not use it as costume indicator in FxDreema because of this datatype. Importation of one of his "ex4" indicator ended up the same. When I tried to use "int" with the default value of the enum (which was "close"), I got errors message on this "close" during compilation.
Are there any new ideas how to tackle this deficiency?
Thanks Ron
-
And to be more specific:
These are the input parameters of the custom indicator "ocn_nma_3_1.ex4"

"Price to use" is enumaration data type

I used "enum" as data type

The enum list was casted here in the EA

This is how the enum appeared in the iCustom

And these are the results of the compilation

Can this be resolved? The indicator is attached as it's available on public domain (coded by Mladen - thanks!)
-
So if I import the indicator exactly as it appears in the Input parameters, as follows

The default value is not liked by the EA, as seen here

And confirmed by the compilation results

Is there any other way to import successfully an enumaration value?
-
Well after playing around I found how to use enumeration in FxDreema EA. Inserting the list here in the following format does the trick:

Then you have to manually change the enum value at all the icustom lines, as follows:

And then it compiles with no issues

-
@ylidor what is the code for this indicator?
-
Bossx, Sorry for being so late (2 months late) to reply. I don't understand your question. The indicator is attached above and the code is unavailable since it is an ex4 file. This topic deals with setting up correctly the enum type of parameters in indicators for which the code is unknown.