"ENUM" custom
-
Hi everyone, I'm looking to make a project where I need to use the "ENUM" custom function, I have already created several times and it works, but I have to write manually in the metaeditor, since in fxdreema you can do anything, I asked myself if anyone knows if it is possible to create, or with a custom block, or with some function of the fxdreema site.
tank you -
@rafael140 I'm not an expert in creation of custom blocks, but I quickly implemented and tested this:
- First a custom block I called enums where I defined my enum datatype and saved it.

- On the on Init tab I created a custom MQL block where I placed my custm block

- For testing I created a custom MQL code block like this

- Tested and saw correct result in the terminal log (enum is zero based!)

I hope that helps for the begining.
-
@trader-philipps thank you very much friend ... I'll try now, then I'll let you know
-
Unfortunately for my need it didn't work ...
thanks anyway for the help -
@rafael140 What didn't work or what's your need?
-
-
see, these custom enums I wrote manually in the metaeditor, but every time I download an update of fxdreema I have to rewrite, because these codes are not automatically inserted in fxdreema.
what I would like is to be able to write in fxdreema so that every time I do a mofica in fxdreema, then I can also bring these code -

-
which then, I have to use here
-
@rafael140 Okay. And that didn't work for you?
A different way may be if you'd create a dummy indicator. As I found out out last weekend, fxdreema imports the variables including enum datatypes. Hence it should be possible to write an indicator where you specify your enum datatypes and it get's imported automatically. It's just a guess, but might work.
-
@trader-philipps ok, then I do this, I try to create any indicator and insert some enum cunstom and see what happens ... poiti I can say something
-
-
I CREATED THE INDICATOR (TOP PHOTO)

THEN INSERTED IN FXDREEMA

but it didn't work, it isn't written correctly in the fxdreema code ...
-
when i download the code from fxdreema i have to see it so compiled in this place :

-
@rafael140 I'm not the expert for custom blocks, but I quicly created the following and tested it in tester.
That looks fine. So you should be able to use any of the defined datatypes in some custom mql block for instance.
Maybe you coukd upload your custom indicator for others to use it?

