fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    "ENUM" custom

    Questions & Answers
    2
    15
    2609
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rafael140 last edited by

      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

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @rafael140 last edited by trader.philipps

        @rafael140 I'm not an expert in creation of custom blocks, but I quickly implemented and tested this:

        1. First a custom block I called enums where I defined my enum datatype and saved it.

        0_1578849310483_Auswahl_819.png

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

        0_1578849391256_Auswahl_822.png

        1. For testing I created a custom MQL code block like this

        0_1578849427624_Auswahl_820.png

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

        0_1578849462485_0babcb47-cbfa-4315-8e46-0d76f5490822-image.png

        I hope that helps for the begining.

        I like to share my knowledge, but expect the others to contribute as well.

        R 1 Reply Last reply Reply Quote 0
        • R
          rafael140 @trader.philipps last edited by

          @trader-philipps thank you very much friend ... I'll try now, then I'll let you know

          R 1 Reply Last reply Reply Quote 0
          • R
            rafael140 @rafael140 last edited by

            Unfortunately for my need it didn't work ...
            thanks anyway for the help

            T 1 Reply Last reply Reply Quote 0
            • T
              trader.philipps @rafael140 last edited by

              @rafael140 What didn't work or what's your need?

              I like to share my knowledge, but expect the others to contribute as well.

              R 1 Reply Last reply Reply Quote 0
              • R
                rafael140 @trader.philipps last edited by

                @trader-philipps 0_1578993364226_0cb3b0c1-e7bd-4a01-babb-74c0faa118d5-image.png

                R 1 Reply Last reply Reply Quote 0
                • R
                  rafael140 @rafael140 last edited by

                  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

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    rafael140 @rafael140 last edited by

                    0_1578993767415_92d1c97f-f334-498b-90be-d2d4539841e2-image.png

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      rafael140 @rafael140 last edited by

                      which then, I have to use here

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        trader.philipps @rafael140 last edited by

                        @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.

                        I like to share my knowledge, but expect the others to contribute as well.

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          rafael140 @trader.philipps last edited by

                          @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

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            rafael140 @rafael140 last edited by

                            @rafael140 0_1579029378406_66b1cd25-07b8-4298-8809-00536e9e46df-image.png

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              rafael140 @rafael140 last edited by

                              I CREATED THE INDICATOR (TOP PHOTO)

                              0_1579029527249_589002b4-5980-4bb5-a91b-0d74f7967ea9-image.png

                              THEN INSERTED IN FXDREEMA

                              0_1579029598091_765c02ca-eaab-48b9-a964-b11cc7c4633a-image.png

                              but it didn't work, it isn't written correctly in the fxdreema code ...

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                rafael140 @rafael140 last edited by

                                when i download the code from fxdreema i have to see it so compiled in this place :
                                0_1579029785551_7f6b0ccc-224d-46d7-8ab7-48de7b5e69ad-image.png

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  trader.philipps @rafael140 last edited by

                                  @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?

                                  I like to share my knowledge, but expect the others to contribute as well.

                                  1 Reply Last reply Reply Quote 0
                                  • 1 / 1
                                  • First post
                                    Last post

                                  Online Users

                                  N
                                  O
                                  M
                                  D

                                  12
                                  Online

                                  146.7k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors