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.
Latest posts made by ylidor
-
RE: Lack of support to "enum" datatypeposted in Questions & Answers
-
RE: Tutorial 06 - My Indicators in fxDreemaposted in Tutorials by Users
Thank you Miro!
I actually was able to solve it myself, as I explained here: https://fxdreema.com/forum/topic/4842/lack-of-support-to-enum-datatype/4. It is pretty much like your solutions. I placed my enum list in the Global Variables section of the FxDreema EA (see picture in the link). I also changed the input parameter at all the iCustom functions as seen in the picture. I wish FxDreema would be able to do all this work for us.
-
RE: Lack of support to "enum" datatypeposted in Questions & Answers
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

-
RE: Lack of support to "enum" datatypeposted in Questions & Answers
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?
-
RE: Lack of support to "enum" datatypeposted in Questions & Answers
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!)
-
Lack of support to "enum" datatypeposted in Questions & Answers
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
-
RE: Tutorial 06 - My Indicators in fxDreemaposted in Tutorials by Users
Hi Miro,
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.
Awhile ago you suggested to try a work-around it, but I can't find my post in the forum where you suggested it. Do you have any practical experience with converting enum datatypes to a list of the usual datatypes, and if yes could you please share with me one or two segments of codes to teach me how to do it?
With your permission I'll also post this question as a new topic in the forum to check if the moderator has any new ideas.
Thanks Ron
-
RE: How to create Stop Loss with twice the value of ATR over x periods?posted in Questions & Answers
Thank you very much Miro! I figured out there should be some easy way to do it with which I was still unfamiliar.
I'm almost convinced someone had asked this question before me but as much as I can tell searching with Keywords or short phrases is unavailable on this forum. I wish this would be added so that we would not repeat asking the same question again and again and again....
-
How to create Stop Loss with twice the value of ATR over x periods?posted in Questions & Answers
Creating Stop Loss with x periods of the ATR is pretty straight forward with the available native ATR indicator. But how can we create SL with multiples of the value of ATR over x periods? Is there a simple way to do it without using a costume indicator that calculate these multiples?
-
RE: Is there a template like this in FxDreema?posted in Questions & Answers
Thank you for your suggestion. I was not aware of this block which indeed solved this problem and provided solution for some other configurations. It is a very useful block!