fxDreema

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

    How Put ComboBox for constants ?

    Questions & Answers
    5
    13
    2503
    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.
    • M
      MMF last edited by

      i want Choose from values by Combobox, how i make this?

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by miro1360

        which values exactly?
        if you want choose from non-standard mql4 values, you can do this only manually in mql code ...
        but if your values are standard (like timeframes, prices, modes) - it can be done easily ....
        for timeframe input type is ENUM_TIMEFRAMES
        0_1489925952445_upload-4bbf9afc-0b24-4eaf-804a-dcb4ba2a8f65

        Between trading and gambling is a very small gap, be careful.

        tcanuto 1 Reply Last reply Reply Quote 0
        • M
          MMF last edited by

          yes It`s Non-standard Where each strategy has a name , I want to choose between them.

          1 Reply Last reply Reply Quote 0
          • M
            miro1360 last edited by

            so only manually in mql code with metaeditor (after generation from fxdreema) ...
            https://docs.mql4.com/basis/types/integer/enumeration

            and after few changes and new generation from fxdreema you need do it again ... I think it can cost you a lot of effort for small visual change πŸ˜„

            Between trading and gambling is a very small gap, be careful.

            1 Reply Last reply Reply Quote 0
            • M
              MMF last edited by MMF

              This means I can not do it by Fxdreema
              I try it by block custom MQL4 but failed.

              1 Reply Last reply Reply Quote 0
              • fxDreema
                fxDreema last edited by

                I never did anything for enumerations. In fact, I think you are the first one asking for that. But because I know myself, I think I won't do nothing about this soon, because it's not something that I feel urgent or at least interesting (for me) πŸ™‚

                What you can try is this. I only think that it will work, but I didn't tested it and I don't know for sure. Here https://fxdreema.com/studio/MQL4 look lower at the right side where "Custom functions" are. Click on New to create new one. Now, the expected format is a regular MQL4 function that has datatype, name, () and {}. So if you write something else, it will not work. But you can write an empty function and after that function you can write anything. Then in the project you must call that function from somewhere, let's say from "Custom MQL4 code" block. But note that this code will be added somewhere in the lower part of the MQL4 code, so this could be a problem.

                tcanuto 1 Reply Last reply Reply Quote 0
                • M
                  MMF last edited by

                  Really all my questions are vague because my thoughts are deep πŸ™‚
                  Thank you fxdreema do not know on studio MQL4 , however I'll try to implement your instructions

                  1 Reply Last reply Reply Quote 0
                  • tcanuto
                    tcanuto @miro1360 last edited by

                    @miro1360 said in How Put ComboBox for constants ?:

                    which values exactly?
                    if you want choose from non-standard mql4 values, you can do this only manually in mql code ...
                    but if your values are standard (like timeframes, prices, modes) - it can be done easily ....
                    for timeframe input type is ENUM_TIMEFRAMES
                    0_1489925952445_upload-4bbf9afc-0b24-4eaf-804a-dcb4ba2a8f65

                    Yes. I tried again a few days ago and this way it works. I'm even optimizing on MT5.

                    1 Reply Last reply Reply Quote 0
                    • tcanuto
                      tcanuto @fxDreema last edited by

                      @fxDreema Hello fxDreema.

                      You must have forgotten, but I had already asked for that. During this time, I had to manually modify the code, but now I discovered that it works here on fxDreema.

                      M L 2 Replies Last reply Reply Quote 0
                      • M
                        MMF @tcanuto last edited by

                        @tcanuto How i do it please ?

                        tcanuto 1 Reply Last reply Reply Quote 0
                        • tcanuto
                          tcanuto @MMF last edited by

                          @MMF

                          This way I did. Instead of writing PERIOD_H1, you can put 0 (current timeframe) also if you want.

                          @tcanuto said in How Put ComboBox for constants ?:

                          for timeframe input type is ENUM_TIMEFRAMES
                          0_1489925952445_upload-4bbf9afc-0b24-4eaf-804a-dcb4ba2a8f65

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            MMF @tcanuto last edited by

                            @tcanuto Thank you πŸ™‚

                            1 Reply Last reply Reply Quote 0
                            • L
                              Leka 0 @tcanuto last edited by

                              @tcanuto me podrias enseΓ±ar como hacerlo en fxdreema

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

                              Online Users

                              V

                              17
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors